// find the shortest distance from the point to the line
double fgPointLine(MAT3vec p, MAT3vec p0, MAT3vec d) {
MAT3vec u, u1, v;
- double ud, dd, tmp, dist;
+ double ud, dd, tmp;
// u = p - p0
MAT3_SUB_VEC(u, p, p0);
// original point, p.
MAT3_SUB_VEC(v, u, u1);
- dist = sqrt(MAT3_DOT_PRODUCT(v, v));
-
- return( dist );
+ return sqrt(MAT3_DOT_PRODUCT(v, v));
}
// $Log$
+// Revision 1.6 1999/03/25 19:02:28 curt
+// Minor optimization tweaks.
+//
// Revision 1.5 1998/10/16 23:36:38 curt
// c++-ifying.
//