MohoView:Point2Vec(where, layerM)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
where Point Pixel location on the screen < 9.5
layerM Matrix The transformation matrix for the layer in question NULL < 9.5

Return value:

Vector2 2D vector point in a layer's coordinate system
Converts a pixel location to a 2D vector location, given a specific transformation matrix. This is used to convert between mouse coordinates and 2D layer coordinates.
<< Back to MohoView