ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
DirectionAngle.cpp
Go to the documentation of this file.
1#include "DirectionAngle.h"
2#include "Mathematics.h"
3
4// Constructor with individual components.
5DirectionAngle::DirectionAngle(float rotation, float x, float y, float z)
6 : Rotation(rotation), Direction(x, y, z) {}
7
8// Constructor with Vector3D.
9DirectionAngle::DirectionAngle(float rotation, Vector3D direction)
10 : Rotation(rotation), Direction(direction) {}
11
12// Convert DirectionAngle to a string representation.
Represents a rotation defined by a direction vector and an angle.
Provides a collection of mathematical utility functions and constants.
String ToString()
Converts the DirectionAngle to a string representation.
DirectionAngle(float rotation, float x, float y, float z)
Constructs a DirectionAngle with a rotation angle and individual direction components.
Vector3D Direction
The direction vector defining the axis of rotation.
Implements a generic Kalman Filter for 1D data.
static String DoubleToCleanString(float value)
Converts a floating-point value to a String, removing trailing decimals if not needed.
Handles 3D rotations and conversions between various rotation representations.
Definition Rotation.h:32
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
Definition Vector3D.h:26
float Z
The Z-component of the 3D vector.
Definition Vector3D.h:30
float X
The X-component of the 3D vector.
Definition Vector3D.h:28
float Y
The Y-component of the 3D vector.
Definition Vector3D.h:29