All Packages Class Hierarchy This Package Previous Next Index
Class convexHull.CPoint
java.lang.Object
|
+----convexHull.CPoint
- public class CPoint
- extends Object
Type point.
-
x
- X coordinate
-
y
- Y coordinate
-
CPoint()
- sets default coordinates to 0.0
-
CPoint(float, float)
- sets coordinates as requested
-
isEqual(CPoint)
- compares to another CPoint instance
-
toString()
- converts the point coordinates to a string of format [x,y]
x
public float x
- X coordinate
y
public float y
- Y coordinate
CPoint
public CPoint()
- sets default coordinates to 0.0
CPoint
public CPoint(float x,
float y)
- sets coordinates as requested
- Parameters:
- x - new X coordinate
- y - new Y coordinate
isEqual
public boolean isEqual(CPoint p2)
- compares to another CPoint instance
- Parameters:
- p2
- - the other instance of CPoint
- Returns:
- - returns true if the two instances are the same points,
otherwise returns false
toString
public String toString()
- converts the point coordinates to a string of format [x,y]
- Returns:
- String - string representation of the point
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index