From cab7db79d64240b231399d05427e54941107e4e5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 27 Nov 2022 17:58:37 +0100 Subject: [PATCH] Base: change return type of Line3::SqrLength() and Line3::Length() --- src/Base/Tools3D.cpp | 4 ++-- src/Base/Tools3D.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;