update vector3::distance_to

pull/191/head
clayjohn 2018-10-25 09:50:53 -07:00
parent b4ab2d2d9b
commit db29a85102
1 changed files with 2 additions and 2 deletions

View File

@ -229,12 +229,12 @@ real_t Vector3::length_squared() const
real_t Vector3::distance_squared_to(const Vector3& b) const
{
return (b-*this).length();
return (b-*this).length_squared();
}
real_t Vector3::distance_to(const Vector3& b) const
{
return (b-*this).length_squared();
return (b-*this).length();
}
real_t Vector3::dot(const Vector3& b) const