mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 01:59:13 +00:00
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:
parent
c70f393f4a
commit
5ce6c97bcc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user