Base: change return type of Line3::SqrLength() and Line3::Length()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user