Some checks failed
Build Docs With Doxygen / Explore-Gitea-Actions (push) Has been cancelled
27 lines
674 B
C++
27 lines
674 B
C++
#pragma once
|
|
|
|
#include <J3ML/LinearAlgebra/EulerAngle.h>
|
|
#include <J3ML/LinearAlgebra/Quaternion.h>
|
|
#include <J3ML/LinearAlgebra/AxisAngle.h>
|
|
#include <J3ML/LinearAlgebra/Vector3.h>
|
|
|
|
namespace J3ML::LinearAlgebra
|
|
{
|
|
|
|
/// Transitional datatype, not useful for internal representation of rotation
|
|
/// But has uses for conversion and manipulation.
|
|
class AxisAngle {
|
|
public:
|
|
Vector3 axis;
|
|
float angle;
|
|
public:
|
|
AxisAngle();
|
|
|
|
AxisAngle(const Vector3 &axis, float angle);
|
|
|
|
EulerAngle ToEulerAngleXYZ() const;
|
|
|
|
Quaternion ToQuaternion() const;
|
|
static AxisAngle FromEulerAngleXYZ(const EulerAngle&);
|
|
};
|
|
} |