Transform3D class
Full 3D transform with position, rotation (quaternion), and scale. Uses dirty-flagged matrix caching for performance.
Constructors
- Transform3D({Vector3? position, Quaternion? rotation, Vector3? scale})
Properties
- forward → Vector3
-
Forward direction (-Z axis in local space, rotated).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- localMatrix → Matrix4
-
Returns the local transform matrix (TRS).
no setter
- position ↔ Vector3
-
getter/setter pair
- right → Vector3
-
Right direction (+X axis in local space, rotated).
no setter
- rotation ↔ Quaternion
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ Vector3
-
getter/setter pair
- up → Vector3
-
Up direction (+Y axis in local space, rotated).
no setter
Methods
-
clone(
) → Transform3D -
lookAt(
Vector3 target, {Vector3? up}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Resets to identity.
-
rotate(
Quaternion delta) → void -
rotateEuler(
double yaw, double pitch, double roll) → void -
toString(
) → String -
A string representation of this object.
inherited
-
translate(
Vector3 delta) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited