sendObjectToPlane
sendObjectToPlane(
object
,from
?,to
?):TMat2D
Defined in: src/util/misc/planeChange.ts:81
A util that abstracts applying transform to objects.
Sends object
to the destination coordinate plane by applying the relevant transformations.
Changes the space/plane where object
is drawn.
From the canvas/viewer’s perspective object
remains unchanged.
Parameters
object
from?
plane matrix containing object. Passing undefined
is equivalent to passing the identity matrix, which means object
is a direct child of canvas.
to?
destination plane matrix to contain object. Passing undefined
means object
should be sent to the canvas coordinate plane.
Returns
the transform matrix that was applied to object