org.kabeja.dxf.helpers
Class ParametricLine

java.lang.Object
  extended by org.kabeja.dxf.helpers.ParametricLine

public class ParametricLine
extends java.lang.Object


Field Summary
protected  Vector direction
           
protected  Point startPoint
           
 
Constructor Summary
ParametricLine()
           
ParametricLine(Point start, Point end)
           
ParametricLine(Point startPoint, Vector direction)
           
 
Method Summary
 Vector getDirectionVector()
           
 double getIntersectionParameter(ParametricLine line)
           
 double getParameter(Point p)
           
 Point getPointAt(double para)
           
 Point getStartPoint()
           
 void setDirectionVector(Vector v)
           
 void setStartPoint(Point start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startPoint

protected Point startPoint

direction

protected Vector direction
Constructor Detail

ParametricLine

public ParametricLine(Point startPoint,
                      Vector direction)

ParametricLine

public ParametricLine(Point start,
                      Point end)

ParametricLine

public ParametricLine()
Method Detail

getIntersectionParameter

public double getIntersectionParameter(ParametricLine line)

getStartPoint

public Point getStartPoint()

setStartPoint

public void setStartPoint(Point start)

getDirectionVector

public Vector getDirectionVector()

setDirectionVector

public void setDirectionVector(Vector v)

getPointAt

public Point getPointAt(double para)

getParameter

public double getParameter(Point p)