- Added const references to GetPosition & GetOrientation
- Renamed OnCurrentFrameFinished()
- Added references to functions in comments
This commit is contained in:
Vladyslav Baranovskyi
2024-06-10 12:49:24 +03:00
parent c708950bc6
commit 1b9041c998
3 changed files with 23 additions and 11 deletions

View File

@@ -44,14 +44,14 @@ namespace OpenVulkano::Math
}
}
bool operator==(const Math::Pose<T> &otherPose)
bool operator==(const Math::Pose<T> &otherPose) const
{
return (GetOrientation() == otherPose.GetOrientation()) && (GetPosition() == otherPose.GetPosition());
}
[[nodiscard]] Quaternion<T> GetOrientation() const { return m_orientation; }
[[nodiscard]] const Quaternion<T>& GetOrientation() const { return m_orientation; }
[[nodiscard]] Vector3_SIMD<T> GetPosition() const { return m_position; }
[[nodiscard]] const Vector3_SIMD<T>& GetPosition() const { return m_position; }
[[nodiscard]] Pose<T> Interpolate(const Pose<T>& otherPose, T mixFactor) const
{