Added ScalarType Length() const function
This commit is contained in:
parent
7c6296c80d
commit
24cf3c430a
|
@ -101,6 +101,11 @@ public:
|
||||||
/// returns segment length
|
/// returns segment length
|
||||||
ScalarType Length()
|
ScalarType Length()
|
||||||
{ return (_p0 - _p1).Norm(); }
|
{ return (_p0 - _p1).Norm(); }
|
||||||
|
|
||||||
|
/// returns segment length
|
||||||
|
ScalarType Length() const
|
||||||
|
{ return (_p0 - _p1).Norm(); }
|
||||||
|
|
||||||
/// return segment squared lenght
|
/// return segment squared lenght
|
||||||
ScalarType SquaredLength()
|
ScalarType SquaredLength()
|
||||||
{ return (_p0 - _p1).SquaredNorm(); }
|
{ return (_p0 - _p1).SquaredNorm(); }
|
||||||
|
|
Loading…
Reference in New Issue