Files
j3ml/include/J3ML/LinearAlgebra/AxisAngle.h
josh 4b3fe2b9e2
Some checks failed
Build Docs With Doxygen / Explore-Gitea-Actions (push) Has been cancelled
Added Quaternion constructors, SetFrom(AxisAngle)
2024-04-25 16:02:32 -04:00

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&);
};
}