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)