1
0
forked from josh/j3ml

Adding code x3

This commit is contained in:
2023-12-28 16:04:31 -06:00
parent 24cc2e79bc
commit 7e32c2ec62
10 changed files with 71 additions and 27 deletions

View File

@@ -14,8 +14,6 @@ namespace LinearAlgebra
public:
AxisAngle();
AxisAngle(Vector3 axis, float angle);
AxisAngle(const Vector3& axis, float angle);
};
}

View File

@@ -4,6 +4,7 @@
#include <J3ML/LinearAlgebra/Vector4.h>
#include <J3ML/LinearAlgebra/AxisAngle.h>
#include <J3ML/LinearAlgebra/Matrix3x3.h>
namespace LinearAlgebra
{
@@ -17,8 +18,6 @@ namespace LinearAlgebra
// @note The input data is not normalized after construction, this has to be done manually.
Quaternion(float X, float Y, float Z, float W);
// Constructs this quaternion by specifying a rotation axis and the amount of rotation to be performed about that axis
// @param rotationAxis The normalized rotation axis to rotate about. If using Vector4 version of the constructor, the w component of this vector must be 0.
Quaternion(const Vector3& rotationAxis, float rotationAngleBetween) { SetFromAxisAngle(rotationAxis, rotationAngleBetween); }
@@ -71,7 +70,7 @@ namespace LinearAlgebra
Vector4 operator * (const Vector4& rhs) const;
// Divides a quaternion by another. Divison "a / b" results in a quaternion that rotates the orientation b to coincide with orientation of
//Quaternion operator / (const Quaternion& rhs) const;
Quaternion operator / (const Quaternion& rhs) const;
Quaternion operator +(const Quaternion& rhs) const;
Quaternion operator +() const;
Quaternion operator -() const;

View File

@@ -16,7 +16,6 @@ namespace LinearAlgebra {
Vector4(Vector4&& move) = default;
Vector4& operator=(const Vector4& rhs);
float GetX() const;
float GetY() const;
float GetZ() const;