Intermact API Reference / @intermact/core / InstanceTransform2D
Interface: InstanceTransform2D
Defined in: packages/core/src/object/traits.ts:95
A per-instance 2D placement (translate/rotate/scale about the local origin), used by InstancedTrait. Structurally compatible with the pcg ObjectTransform2D operator input, but lives in the object layer so traits stay pcg-free.
Properties
position
readonlyposition:AbsXY
Defined in: packages/core/src/object/traits.ts:96
rotation
readonlyrotation:number
Defined in: packages/core/src/object/traits.ts:98
Rotation in radians.
scale
readonlyscale: readonly [number,number]
Defined in: packages/core/src/object/traits.ts:100
Per-axis scale [sx, sy].