Transform:transformPoint
Applies the Transform object's transformation to the given 2D position.

This effectively converts the given position from global coordinates into the local coordinate space of the Transform.
localX, localY = Transform:transformPoint( globalX, globalY )
globalX number The x component of the position in global coordinates.
globalY number The y component of the position in global coordinates.
localX number The x component of the position with the transform applied.
localY number The y component of the position with the transform applied.