Package jcckit.util
Class Point
java.lang.Object
jcckit.util.Point
- Direct Known Subclasses:
DataPoint
,GraphPoint
Immutable class of a two-dimensional point with floating point
coordinates.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Point
public Point(double[] vector) Creates an instance for the specified vector. The value of the first/second element of vector denotes the x/y value. If vector is null or not long enough 0 will be used as default values. -
Point
public Point(double x, double y) Creates an instance for the specified coordinates.
-
-
Method Details
-
getX
public double getX()Returns the x-coordinate of the point. -
getY
public double getY()Returns the y-coordinate of the point.
-