Class Line

java.lang.Object
  |
  +--Line

public class Line
extends java.lang.Object

This class represents a Line as a Point pair.


Method Summary
 double length()
          Returns the length of the Line.
 java.lang.String toString()
          Method used by Java to convert from Line to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

length

public double length()
Returns the length of the Line.
Returns:
A double that is the length of the Line.

toString

public java.lang.String toString()
Method used by Java to convert from Line to string. Useful when debugging.
Overrides:
toString in class java.lang.Object
Returns:
A String that is used when printing Line.