Method XbpWindow():mapPoint() Foundation
Map a point from one coordinate space to another
:mapPoint( <oXbpDest>, <aPos> ) --> aPosMapped
The method returns an array with two elements. It contains the x and y coordinates of the point specified relative to the coordinate system defined by<oXbpDest>.
Method :mapPoint() maps a point from the coordinate space of the object executing the method (self) to that of another Xbase Part. Mapping points becomes necessary when a certain coordinate is used with an Xbase Part which is located at another level in the parent/child hierarchy. For example, the function GetPointerPos() returns the mouse pointer position in screen coordinates (see function AppDesktop()). To move a certain Xbase Part to the position of the mouse pointer, the position first has to be mapped to the Xbase Part's parent object. For this, the function :mapPoint() can be used.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.