Rotation3D class
Represents 3D rotation values around multiple axes.
Holds rotation angles for x (horizontal flip), y (vertical flip), and z (2D rotation) axes. All values are in the unit specified by Rotate3DAct.
Use x, y, z fields individually or create via constructor with only the axes you want to rotate.
Constructors
- Rotation3D({double x = 0, double y = 0, double z = 0})
-
Creates a 3D rotation with x, y, and z angles.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → double
-
Rotation around the X-axis (horizontal flip).
final
- y → double
-
Rotation around the Y-axis (vertical flip).
final
- z → double
-
Rotation around the Z-axis (2D rotation in the plane).
final
Methods
-
lerpTo(
Rotation3D other, double t) → Rotation3D -
Linearly interpolates from this rotation to
otherbyt. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
Rotation3D? a, Rotation3D? b, double t) → Rotation3D? - Linearly interpolates between two rotations, or returns null if both are null.
Constants
- zero → const Rotation3D
- Zero rotation (no rotation on any axis).