Base: change return type of Line3::SqrLength() and Line3::Length()

This commit is contained in:
wmayer
2022-11-27 17:58:37 +01:00
parent 3df86553f8
commit cab7db79d6
2 changed files with 4 additions and 4 deletions

View File

@@ -77,13 +77,13 @@ bool Line3<float_type>::operator== (const Line3<float_type>& line) const
}
template <typename float_type>
double Line3<float_type>::Length() const
float_type Line3<float_type>::Length() const
{
return Base::Distance(p1, p2);
}
template <typename float_type>
double Line3<float_type>::SqrLength() const
float_type Line3<float_type>::SqrLength() const
{
return Base::DistanceP2(p1, p2);
}