computational.geometry
Class Polygon.Vertex
java.lang.Object
computational.geometry.Point
computational.geometry.Polygon.Vertex
- All Implemented Interfaces:
- Shape, java.io.Serializable, java.lang.Cloneable
- Enclosing class:
- Polygon
public static class Polygon.Vertex
- extends Point
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object obj)
Determines whether or not two points are equal. |
java.lang.Integer |
getIndex()
|
Methods inherited from class computational.geometry.Point |
add, boundingBox, clone, contains, distance2, draw, drawLabels, drawPoints, getLabel, getPoints, getX, getY, setLabel, sub, toString, translate |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Polygon.Vertex
public Polygon.Vertex(java.lang.Integer index,
Point point,
Polygon.Vertex prev,
Polygon.Vertex next)
equals
public boolean equals(java.lang.Object obj)
- Description copied from class:
Point
- Determines whether or not two points are equal. Two instances of
Point
are equal if the values of their
x
and y
member fields, representing
their position in the coordinate space, are the same.
- Overrides:
equals
in class Point
- Parameters:
obj
- an object to be compared with this Point
- Returns:
true
if the object to be compared is
an instance of Point
and has
the same values; false
otherwise.
getIndex
public java.lang.Integer getIndex()