Transform class

A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames.


Transform.clone(Transform xf)
Initialize as a copy of another transform.
Transform.from(Vector2 _position, Rot _R)
Initialize using a position vector and a rotation matrix.
The default constructor.


hashCode int
The hash code for this object. [...]
read-only, inherited
p Vector2
The translation caused by the transform
q Rot
A matrix representing a rotation
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


mulTransToOut(Transform A, Transform B, Transform out) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
set(Transform xf) Transform
Set this to equal another transform.
setIdentity() → void
Set this to the identity transform.
setVec2Angle(Vector2 p, double angle) → void
Set this based on the position and angle.
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

mul(Transform A, Transform B) Transform
mulToOut(Transform A, Transform B, Transform out) → void
mulToOutUnsafe(Transform A, Transform B, Transform out) → void
mulToOutUnsafeVec2(Transform transform, Vector2 v, Vector2 out) → void
mulToOutVec2(Transform T, Vector2 v, Vector2 out) → void
mulTrans(Transform A, Transform B) Transform
mulTransToOutUnsafe(Transform A, Transform B, Transform out) → void
mulTransToOutUnsafeVec2(Transform T, Vector2 v, Vector2 out) → void
mulTransToOutVec2(Transform T, Vector2 v, Vector2 out) → void
mulTransVec2(Transform T, Vector2 v) Vector2
mulVec2(Transform T, Vector2 v) Vector2