jbotrace.base
Class Line

java.lang.Object
  |
  +--jbotrace.base.Line

public class Line
extends java.lang.Object

Description: Line provides functions to handle lines.


Constructor Summary
Line()
           
Line(Vec[] pts)
           
Line(Vec p1, Vec p2)
           
 
Method Summary
 double distanceToPoint(Vec pt)
           
 double getDirection()
           
 double getLength()
           
 Vec[] getPoints()
           
 boolean pointIsBeside(Vec pt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Line

public Line()

Line

public Line(Vec p1,
            Vec p2)

Line

public Line(Vec[] pts)
Method Detail

distanceToPoint

public double distanceToPoint(Vec pt)

getDirection

public double getDirection()

getLength

public double getLength()

getPoints

public Vec[] getPoints()

pointIsBeside

public boolean pointIsBeside(Vec pt)