Rot class

Constructors

Rot({double sin = 0.0, double cos = 1.0})
Rot.mul(Rot q, Rot r)
Rot.mulTrans(Rot q, Rot r)
Rot.withAngle(double angle)

Properties

cos double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sin double
getter/setter pair

Methods

clone() Rot
getAngle() double
getCos() double
getSin() double
getXAxis({Vector2? out}) Vector2
getYAxis({Vector2? out}) Vector2
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAngle(double angle) → void
setFrom(Rot other) → void
setIdentity() → void
toString() String
A string representation of this object.
override

Operators

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

Static Methods

mulTransVec2(Rot q, Vector2 v) Vector2
mulVec2(Rot q, Vector2 v) Vector2