From c69a02d71dce6b8ce4b1f4c930d38b7635fe4e18 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Sat, 8 May 2004 14:07:50 +0000 Subject: [PATCH] return type of length and squaredlength corrected --- vcg/space/segment3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/space/segment3.h b/vcg/space/segment3.h index 61d2b66d..3d400d26 100644 --- a/vcg/space/segment3.h +++ b/vcg/space/segment3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.3 2004/03/11 11:47:20 tarini +minor updates, corrections, added documentations, etc. + Revision 1.1 2004/03/08 19:46:47 tarini First Version (tarini) @@ -101,10 +104,10 @@ public: if (_p0[2]<_p1[2]) { t.min[2]=_p0[2];t.max[2]=_p1[2];} else { t.min[2]=_p1[2];t.max[2]=_p0[2];} return t; } /// returns segment length - SegmentType &Length() + ScalarType Length() { return (_p0 - _p1).Norm(); } /// return segment squared lenght - SegmentType &SquaredLength() + ScalarType SquaredLength() { return (_p0 - _p1).SquaredNorm(); } /// flips: a-b becomes b-a void Flip()