Added ScalarType Length() const function

This commit is contained in:
Nico Pietroni 2009-06-30 16:13:19 +00:00
parent 7c6296c80d
commit 24cf3c430a
1 changed files with 6 additions and 1 deletions

View File

@ -101,6 +101,11 @@ public:
/// returns segment length
ScalarType Length()
{ return (_p0 - _p1).Norm(); }
/// returns segment length
ScalarType Length() const
{ return (_p0 - _p1).Norm(); }
/// return segment squared lenght
ScalarType SquaredLength()
{ return (_p0 - _p1).SquaredNorm(); }