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.mul(Transform a, Transform b)
factory
Transform.mulTrans(Transform a, Transform b)
factory
Transform.zero()
The default constructor.

Properties

hashCode int
The hash code for this object.
no setterinherited
p Vector2
The translation caused by the transform
final
q Rot
A matrix representing a rotation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFrom(Transform xf) → void
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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

mulTransVec2(Transform t, Vector2 v) Vector2
mulVec2(Transform t, Vector2 v) Vector2