From 167845dce437d9ccbe4666a1a836180b83183854 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 28 Apr 2004 16:36:55 +0000 Subject: [PATCH] Changed : in Distance(plane, point) : return plane.Direction() * point - plane.Offset; in return plane.Direction() * point - plane.Offset(); --- vcg/space/plane3.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vcg/space/plane3.h b/vcg/space/plane3.h index a076fb0a..1dfc37ec 100644 --- a/vcg/space/plane3.h +++ b/vcg/space/plane3.h @@ -24,6 +24,12 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2004/04/28 11:19:52 turini +Changed : +in Init(p0, norm) _dist = p0 * _dir; in _offset = p0 * _dir; +Changed : +in Init(p0, p1, p2) _offset = p0 * _dist; in _offset = p0 * _dir; + Revision 1.1 2004/03/31 22:19:24 ponchio Untested first draft. @@ -128,8 +134,8 @@ typedef Plane3 Plane3f; typedef Plane3 Plane3d; ///Distance plane - point (Move this function to somewhere else) -template T Distance(const Plane3 &plane, const Point3 &point) { - return plane.Direction() * point - plane.Offset; +template T Distance(const Plane3 &plane, const Point3 &point) { + return plane.Direction() * point - plane.Offset(); } ///Distance point-plane (Move this function to somewhere else)