![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Defines a rotation in 3D space using an axis and an angle. More...
#include <AxisAngle.h>
Public Member Functions | |
AxisAngle (float rotation, float x, float y, float z) | |
Constructs an AxisAngle with a rotation angle and individual axis components. | |
AxisAngle (float rotation, Vector3D axis) | |
Constructs an AxisAngle with a rotation angle and a vector axis. | |
String | ToString () |
Converts the AxisAngle to a string representation. | |
Public Attributes | |
float | Rotation |
The angle of rotation in degrees (or radians, depending on usage). | |
Vector3D | Axis |
The axis of rotation, represented as a 3D vector. | |
Defines a rotation in 3D space using an axis and an angle.
The AxisAngle
class provides a representation for rotations, where the rotation is defined by an angle in degrees (or radians) and a unit axis vector.
Definition at line 23 of file AxisAngle.h.
Constructs an AxisAngle
with a rotation angle and individual axis components.
rotation | The angle of rotation. |
x | The X component of the rotation axis. |
y | The Y component of the rotation axis. |
z | The Z component of the rotation axis. |
Definition at line 5 of file AxisAngle.cpp.
Constructs an AxisAngle
with a rotation angle and a vector axis.
rotation | The angle of rotation. |
axis | The axis of rotation, represented as a Vector3D . |
Definition at line 8 of file AxisAngle.cpp.
String ToString | ( | ) |
Converts the AxisAngle
to a string representation.
Useful for debugging and visualization of the rotation data.
AxisAngle
in the format "(rotation: X, axis: [X, Y, Z])". Definition at line 11 of file AxisAngle.cpp.
References Axis, Mathematics::DoubleToCleanString(), Vector3D::X, Vector3D::Y, and Vector3D::Z.
Vector3D Axis |
The axis of rotation, represented as a 3D vector.
Definition at line 26 of file AxisAngle.h.
Referenced by ToString().
The angle of rotation in degrees (or radians, depending on usage).
Definition at line 25 of file AxisAngle.h.