added a method to retrieve the closest point from a line to the origin.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1124652 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2011-05-19 09:59:49 +00:00
parent c70f393f4a
commit 5ce6c97bcc

View File

@ -76,6 +76,13 @@ public class Line implements SubSpace {
return direction;
}
/** Get the line point closest to the origin.
* @return line point closest to the origin
*/
public Vector3D getOrigin() {
return zero;
}
/** Get the abscissa of a point with respect to the line.
* <p>The abscissa is 0 if the projection of the point and the
* projection of the frame origin on the line are the same