Changed :

in Distance(plane, point) :
return plane.Direction() * point - plane.Offset;
in
return plane.Direction() * point - plane.Offset();
This commit is contained in:
Paolo Cignoni 2004-04-28 16:36:55 +00:00
parent a92bdebe76
commit 167845dce4
1 changed files with 8 additions and 2 deletions

View File

@ -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.
@ -129,7 +135,7 @@ typedef Plane3<double> Plane3d;
///Distance plane - point (Move this function to somewhere else)
template<class T> T Distance(const Plane3<T> &plane, const Point3<T> &point) {
return plane.Direction() * point - plane.Offset;
return plane.Direction() * point - plane.Offset();
}
///Distance point-plane (Move this function to somewhere else)