MohoView:Point2Vec(where, layerM)

Version added: before 9.5

Converts a pixel location to a 2D vector location, given a specific transformation matrix

ArgumentTypeDescriptionDefaultVersion added
whereLM_PointPixel location on the screenbefore 9.5
layerMLM_MatrixThe transformation matrix for the layer in questionNULLbefore 9.5

Return type (LM_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.