Package de.xima.fc.common.geometry
Interface Point2DDoubleAdapter<Point>
-
- Type Parameters:
Point
- The type of the object that represents a point in 2D space with double precision.
public interface Point2DDoubleAdapter<Point>
Adapter for treating arbitrary objects as aPoint2DDouble
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Point
newPoint(double x, double y)
Creates a new point with the given coordinates.double
x(Point point)
Gets the x-coordinate of the given point.double
y(Point point)
Gets the y-coordinate of the given point.
-
-
-
Method Detail
-
newPoint
Point newPoint(double x, double y)
Creates a new point with the given coordinates.- Parameters:
x
- The x-coordinate of the point.y
- The y-coordinate of the point.- Returns:
- A new point with the specified coordinates.
-
x
double x(Point point)
Gets the x-coordinate of the given point.- Parameters:
point
- The point from which to retrieve the x-coordinate.- Returns:
- The x-coordinate of the point.
-
y
double y(Point point)
Gets the y-coordinate of the given point.- Parameters:
point
- The point from which to retrieve the y-coordinate.- Returns:
- The y-coordinate of the point.
-
-