org.simtk.geometry3d
Class Line3D

java.lang.Object
  extended by org.simtk.geometry3d.Line3D

public class Line3D
extends java.lang.Object

Author:
Christopher Bruns Infinite line in three dimensions.

Field Summary
 Vector3D direction
           
 Vector3D origin
           
 
Constructor Summary
Line3D()
           
Line3D(Vector3D d, Vector3D o)
           
 
Method Summary
static Line3D bestLine3D(java.util.Vector<Vector3D> bagOfPoints)
           
 Vector3D getClosestPoint(Vector3D v)
           
 Vector3D getDirection()
           
 Vector3D getOrigin()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

direction

public Vector3D direction

origin

public Vector3D origin
Constructor Detail

Line3D

public Line3D()

Line3D

public Line3D(Vector3D d,
              Vector3D o)
Method Detail

getDirection

public Vector3D getDirection()

getOrigin

public Vector3D getOrigin()

getClosestPoint

public Vector3D getClosestPoint(Vector3D v)

bestLine3D

public static Line3D bestLine3D(java.util.Vector<Vector3D> bagOfPoints)
                         throws InsufficientPointsException
Throws:
InsufficientPointsException