Package org.anchoranalysis.spatial.point
Class Point3f
- All Implemented Interfaces:
- Serializable
A three-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:
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanfinal doubleThe Euclidean distance between this point and another.floatdistanceSquared(Point3f point) The square of the Euclidean distance between this point and another.booleaninthashCode()Methods inherited from class org.anchoranalysis.spatial.point.Tuple3fsetValueByDimension, toString, valueByDimension, valueByDimension, x, x, y, y, z, z
- 
Constructor Details- 
Point3fpublic Point3f()Creates the points with a 0 in each dimension.
- 
Point3fCreates with the same values as an existingPoint3f.- Parameters:
- point- to copy values from.
 
- 
Point3fpublic Point3f(float x, float y, float z) Create with values for each dimension.- Parameters:
- x- the value for the X-dimension.
- y- the value for the Y-dimension.
- z- the value for the Z-dimension.
 
 
- 
- 
Method Details- 
distanceThe Euclidean distance between this point and another.- Parameters:
- point- the other point to a measure a distance to.
- Returns:
- the distance.
 
- 
distanceSquaredThe square of the Euclidean distance between this point and another.- Parameters:
- point- the other point to a measure a distance to.
- Returns:
- the distance squared.
 
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-