Transform class

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

Constructors

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.
Transform.zero()
The default constructor.

Properties

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

Methods

mulTransToOut(Transform A, Transform B, Transform out) → void
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
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

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