@Status(stage=DEVELOPMENT, unitTests=COMPLETE) @ThreadSafety(level=IMMUTABLE) public class CPoint extends Object implements Serializable
Constructor and Description |
---|
CPoint(double x,
double y)
Creates this CPoint from the supplied x coordinate and y coordinate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object point)
Determines whether this CPoint is equal to the supplied point.
|
double |
getX()
Gets the x coordinate of this CPoint.
|
double |
getY()
Gets the y coordinate of this CPoint.
|
int |
hashCode()
Computes the hash code of this CPoint.
|
String |
toString()
Creates a String representation of this CPoint.
|
public CPoint(double x, double y)
x
- The x coordinate.y
- The y coordinate.public double getX()
public double getY()
public boolean equals(Object point)
public int hashCode()
Copyright © 2008–2018. All rights reserved.