Object
org.anchoranalysis.spatial.point.Point2f
- All Implemented Interfaces:
Serializable
public final class Point2f
extends Object
implements Serializable
A
two-dimensional point of
float values.
We consider a point to be a tuple representing a single physical point in space.
- Author:
- Owen Feehan
- See Also:
- Serialized Form
-
Constructor Summary
Constructors
| Constructor |
Description |
Point2f() |
|
Point2f(float x,
float y) |
|
-
Method Summary
| Modifier and Type |
Method |
Description |
boolean |
equals(Object o) |
|
int |
hashCode() |
|
void |
scale(double factor) |
Multiplies each dimension's component by a factor.
|
String |
toString() |
|
float |
x() |
X-axis component of point.
|
float |
y() |
Y-axis component of point.
|
-
Constructor Details
-
public Point2f(float x,
float y)
-
-
Method Details
-
public void scale(double factor)
Multiplies each dimension's component by a factor.
- Parameters:
factor - the factor to multiply by.
-
-
-
-
public float x()
X-axis component of point.
-
public float y()
Y-axis component of point.