stuff-from-scratch/src/base/geometry/Rotation.cpp
2023-01-30 14:53:49 +00:00

31 lines
525 B
C++

#include "Rotation.h"
Rotation::Rotation(double angle, Axis axis, const Point3& loc, const Vector3& customAxis)
: mAngle(angle),
mAxis(axis),
mPoint(loc),
mCustomAxis(customAxis),
mMatrix()
{
updateMatrix();
}
const SquareMatrix3& Rotation::getMatrix() const
{
return mMatrix;
}
bool Rotation::isIdentity() const
{
return mMatrix.isIdentity();
}
bool Rotation::isEqual(const Rotation& rotation) const
{
return mMatrix == rotation.mMatrix;
}
void Rotation::updateMatrix()
{
}