EulerRotation class
A rotation held as Euler angles in radians — the engine's one convention,
q = qY(y) · qX(x) · qZ(z) (see Quaternion).
Holding angles rather than a quaternion keeps them editable and continuous (a turn past 180° keeps counting); setFromQuaternion picks the equivalent triple nearest the current one.
Constructors
- EulerRotation([double x = 0.0, double y = 0.0, double z = 0.0])
- Create from angles in radians.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPlanar → bool
-
Whether this only turns about Z.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x ↔ double
-
Rotation about X.
getter/setter pair
- y ↔ double
-
Rotation about Y.
getter/setter pair
- z ↔ double
-
Rotation about Z — the 2-D angle.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quaternionInto(
Quaternion out) → void -
Write this rotation as a quaternion into
out. -
setFrom(
EulerRotation other) → void -
Set to
other. -
setFromQuaternion(
Quaternion q) → void - Set from a quaternion, nearest the current angles. A rotation that is 2-D up to rounding stays exactly 2-D.
-
setValues(
double nx, double ny, double nz) → void - Set all three angles.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited