Euler class
A class representing Euler Angles.
Euler angles describe a rotational transformation by rotating an object on its various axes in specified amounts per axis, and a specified axis order.
final a = Euler( 0, 1, 1.57, RotationOrders.xyz);
final b = Vector3( 1, 0, 1 );
b.applyEuler(a);
Constructors
- Euler([double? x, double? y, double? z, RotationOrders? order])
-
x
- (optional) the angle of the x axis in radians. Default is0
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onChangeCallback ↔ Function
-
getter/setter pair
- order ↔ RotationOrders
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String
-
getter/setter pair
- x ↔ double
-
getter/setter pair
- y ↔ double
-
getter/setter pair
- z ↔ double
-
getter/setter pair
Methods
-
clone(
) → Euler - Returns a new Euler with the same parameters as this one.
-
copy(
Euler euler) → Euler -
Copies value of
euler
to this euler. -
equals(
Euler euler) → bool -
fromArray(
List< double> array) → Euler -
array
of length 3 or 4. The optional 4th argument corresponds to the order. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(
Function callback) → void -
reorder(
RotationOrders newOrder) → Euler - Resets the euler angle with a new order by creating a quaternion from this euler angle and then setting this euler angle with the quaternion and the new order.
-
set(
double x, double y, double z, [RotationOrders? order]) → Euler -
x
- the angle of the x axis in radians. -
setFromQuaternion(
Quaternion q, [RotationOrders? order, bool update = false]) → Euler -
q
- a normalized quaternion. -
setFromRotationMatrix(
Matrix4 m, [RotationOrders? order, bool? update]) → Euler -
m
- a Matrix4 of which the upper 3x3 of matrix is a pure rotation matrix (i.e. unscaled). -
setFromVector3(
Vector3 v, [RotationOrders? order]) → Euler -
v
- Vector3. -
toArray(
[List< num> ? array, int offset = 0]) → List<num> -
array
- (optional) array to store the euler in. -
toList(
) → List< num> -
toString(
) → String -
A string representation of this object.
inherited
-
toVector3(
[Vector3? optionalResult]) → Vector3
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultOrder → const RotationOrders