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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user