diff --git a/src/Base/Tools3D.cpp b/src/Base/Tools3D.cpp index eb2a842a3c..af9694b251 100644 --- a/src/Base/Tools3D.cpp +++ b/src/Base/Tools3D.cpp @@ -77,13 +77,13 @@ bool Line3::operator== (const Line3& line) const } template -double Line3::Length() const +float_type Line3::Length() const { return Base::Distance(p1, p2); } template -double Line3::SqrLength() const +float_type Line3::SqrLength() const { return Base::DistanceP2(p1, p2); } diff --git a/src/Base/Tools3D.h b/src/Base/Tools3D.h index cc9a891d05..7c57d33be1 100644 --- a/src/Base/Tools3D.h +++ b/src/Base/Tools3D.h @@ -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 CalcBoundBox() const; Vector3 GetBase() const; Vector3 GetDirection() const;