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 88510213d9
commit 9c191c1246
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);
}

View File

@@ -68,8 +68,8 @@ public:
bool operator== (const Line3& line) const;
// methods
double Length () const;
double SqrLength () const;
float_type Length () const;
float_type SqrLength () const;
BoundBox3<float_type> CalcBoundBox() const;
Vector3<float_type> GetBase() const;
Vector3<float_type> GetDirection() const;