Package org.anchoranalysis.spatial.point
Class Point2f
Object
Point2f
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Point2f
public Point2f(float x, float y) Creates a newPoint2f
instance.- Parameters:
x
- X-axis component of point.y
- Y-axis component of point.
-
Point2f
public Point2f()
-
-
Method Details
-
scale
public void scale(double factor) Multiplies each dimension's component by a factor.- Parameters:
factor
- the factor to multiply by.
-
toString
-
equals
-
hashCode
public int hashCode() -
x
public float x()X-axis component of point. -
y
public float y()Y-axis component of point.
-