|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.orekit.utils.Line
public class Line
The class represent lines in a three dimensional space.
Each oriented line is intrinsically associated with an abscissa wich is a coordinate on the line. The point at abscissa 0 is the orthogonal projection of the origin on the line, another equivalent way to express this is to say that it is the point of the line which is closest to the origin. Abscissa increases in the line direction.
This class is a simplification of the
org.spaceroots.lift.geometry.threeD.Line class from the Lift
library written and owned by Luc Maisonobe. It is reused here with permission,
as CS has a source and redistribution licence for it.
| Constructor Summary | |
|---|---|
Line(org.apache.commons.math.geometry.Vector3D p,
org.apache.commons.math.geometry.Vector3D direction)
Build a line from a point and a direction. |
|
| Method Summary | |
|---|---|
boolean |
contains(org.apache.commons.math.geometry.Vector3D p)
Check if the instance contains a point. |
double |
distance(org.apache.commons.math.geometry.Vector3D p)
Compute the distance between the instance and a point. |
double |
getAbscissa(org.apache.commons.math.geometry.Vector3D point)
Get the abscissa of a point with respect to the line. |
org.apache.commons.math.geometry.Vector3D |
getDirection()
Get the normalized direction vector. |
org.apache.commons.math.geometry.Vector3D |
getOrigin()
Get the line point closest to the origin. |
org.apache.commons.math.geometry.Vector3D |
pointAt(double abscissa)
Get one point from the line. |
static Line |
revert(Line line)
Revert the line direction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Line(org.apache.commons.math.geometry.Vector3D p,
org.apache.commons.math.geometry.Vector3D direction)
p - point belonging to the line (this can be any point)direction - direction of the line
java.lang.IllegalArgumentException - if the direction norm is too small| Method Detail |
|---|
public static Line revert(Line line)
line - the line to revert
public org.apache.commons.math.geometry.Vector3D getDirection()
public org.apache.commons.math.geometry.Vector3D getOrigin()
public double getAbscissa(org.apache.commons.math.geometry.Vector3D point)
The abscissa is 0 if the projection of the point and the projection of the frame origin on the line are the same point.
point - point to check
public org.apache.commons.math.geometry.Vector3D pointAt(double abscissa)
abscissa - desired abscissa for the point
Vector3D instance)public boolean contains(org.apache.commons.math.geometry.Vector3D p)
p - point to check
public double distance(org.apache.commons.math.geometry.Vector3D p)
p - to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||