From ffbff9e7077ba00ec309c8c543304fdd1fb31249 Mon Sep 17 00:00:00 2001 From: Lynix Date: Mon, 23 Sep 2013 00:22:18 +0200 Subject: [PATCH] Fixed compilation errors Former-commit-id: 1ba7f27b5e56aee1ffc34459ab64d56bfe359dfe --- include/Nazara/Math/Quaternion.inl | 2 +- include/Nazara/Math/Vector3.inl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Nazara/Math/Quaternion.inl b/include/Nazara/Math/Quaternion.inl index ab843d4a1..9d5240244 100644 --- a/include/Nazara/Math/Quaternion.inl +++ b/include/Nazara/Math/Quaternion.inl @@ -337,7 +337,7 @@ NzQuaternion NzQuaternion::operator*(T scale) const template NzQuaternion NzQuaternion::operator/(const NzQuaternion& quat) const { - return GetConjugate(quat) * (*this); + return quat.GetConjugate() * (*this); } template diff --git a/include/Nazara/Math/Vector3.inl b/include/Nazara/Math/Vector3.inl index 8690fade3..bef3ef73e 100644 --- a/include/Nazara/Math/Vector3.inl +++ b/include/Nazara/Math/Vector3.inl @@ -75,7 +75,7 @@ T NzVector3::Distance(const NzVector3& vec) const template float NzVector3::Distancef(const NzVector3& vec) const { - return std::sqrt(static_cast(SquaredDistance())); + return std::sqrt(static_cast(SquaredDistance(vec))); } template