org.jscience.chemistry.gui.extended.geometry
Class Line

java.lang.Object
  extended by org.jscience.chemistry.gui.extended.geometry.Line

public class Line
extends java.lang.Object

A class that defines geometric straight line in 3D space


Constructor Summary
Line()
          Default constructor
Line(Point3D pointA, Point3D pointB)
          Full constructor
 
Method Summary
 double distanceTo(Point3D pointX)
          Return the distance from a given point to the line
 GeoVector3D vectorTo(Point3D pointX)
          Return the geometric vector from some point on the line to the given point so that the vector is perpendicular to the line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Line

public Line()
Default constructor


Line

public Line(Point3D pointA,
            Point3D pointB)
Full constructor

Parameters:
pointA - a point on the line
pointB - the other point on the line
Method Detail

vectorTo

public GeoVector3D vectorTo(Point3D pointX)
Return the geometric vector from some point on the line to the given point so that the vector is perpendicular to the line. Assume the given point is not on the line

Parameters:
pointX - the give point
Returns:
DOCUMENT ME!

distanceTo

public double distanceTo(Point3D pointX)
Return the distance from a given point to the line

Parameters:
pointX - DOCUMENT ME!
Returns:
DOCUMENT ME!