Package micycle.trapmap
Class Segment
- java.lang.Object
-
- micycle.trapmap.Segment
-
public class Segment extends Object
Represents a line segment by its endpoints. Endpoints are stored in order as given by the compareTo function of the Point class.- Author:
- Tyler Chenhall
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object s)
processing.core.PVector
getLeftPoint()
Get the left segment endpoint (as ordered by the compareTo function of the Point class).processing.core.PVector
getRightPoint()
Get the right segment endpoint (as ordered by the compareTo function of the Point class).int
hashCode()
String
toString()
-
-
-
Method Detail
-
getLeftPoint
public processing.core.PVector getLeftPoint()
Get the left segment endpoint (as ordered by the compareTo function of the Point class).- Returns:
- The left segment endpoint
-
getRightPoint
public processing.core.PVector getRightPoint()
Get the right segment endpoint (as ordered by the compareTo function of the Point class).- Returns:
- The right segment endpoint
-
-