Skip to content

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

readonly position: AbsXY

Defined in: packages/core/src/object/traits.ts:96


rotation

readonly rotation: number

Defined in: packages/core/src/object/traits.ts:98

Rotation in radians.


scale

readonly scale: readonly [number, number]

Defined in: packages/core/src/object/traits.ts:100

Per-axis scale [sx, sy].

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)