|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Line
public class Line
Class Line represents lines in three-dimensional Euclidean space.
Lines always have non-zero direction vectors.
Version 1.0.0 01-DEC-2009 (NJB)
Constructor Summary | |
---|---|
Line()
Zero-arguments constructor. |
|
Line(Line line)
Copy constructor. |
|
Line(Ray ray)
Create a Line from a Ray. |
|
Line(Vector3 point,
Vector3 direction)
Create a Line from a point and direction. |
Method Summary | |
---|---|
Vector3 |
getDirection()
Return a direction vector for this Line. |
Vector3 |
getNearPoint(Vector3 point)
Find the closest point on this line to a specified point. |
Vector3 |
getPoint()
Return a point on this Line. |
Ray |
getRay()
Return a ray included by this Line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Line()
public Line(Line line)
public Line(Ray ray)
public Line(Vector3 point, Vector3 direction) throws SpiceException
SpiceException
Method Detail |
---|
public Ray getRay()
public Vector3 getPoint()
public Vector3 getDirection()
public Vector3 getNearPoint(Vector3 point) throws SpiceException
SpiceException
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |