Package org.anchoranalysis.spatial.point
Class Tuple3f
Object
Tuple3f
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Point3f
A three-dimensional tuple of float values.
- Author:
- Owen Feehan
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
hashCode()
final void
setValueByDimension
(int dimensionIndex, float valueToAssign) Assigns a value to a component of a tuple corresponding to a particular dimension by index.toString()
final float
valueByDimension
(int dimensionIndex) A component of a tuple corresponding to a particular dimension by index.final float
valueByDimension
(Axis axis) A component of a tuple corresponding to a particular axis.float
x()
X-axis component of the tuple.x
(float x) X-axis component of the tuple.float
y()
Y-axis component of the tuple.y
(float y) Y-axis component of the tuple.float
z()
Z-axis component of the tuple.z
(float z) Z-axis component of the tuple.
-
Field Details
-
x
protected float xX-axis component of the tuple. -
y
protected float yY-axis component of the tuple. -
z
protected float zZ-axis component of the tuple.
-
-
Constructor Details
-
Tuple3f
public Tuple3f()
-
-
Method Details
-
valueByDimension
A component of a tuple corresponding to a particular axis.- Parameters:
axis
- the axis.- Returns:
- the component of the tuple corresponding to that axis.
-
valueByDimension
public final float valueByDimension(int dimensionIndex) A component of a tuple corresponding to a particular dimension by index.- Parameters:
dimensionIndex
- the index corresponding to an axis, as perAxisConverter
.- Returns:
- the component of the tuple corresponding to that axis.
-
setValueByDimension
public final void setValueByDimension(int dimensionIndex, float valueToAssign) Assigns a value to a component of a tuple corresponding to a particular dimension by index.- Parameters:
dimensionIndex
- the index corresponding to an axis, as perAxisConverter
.valueToAssign
- the value to assign.
-
toString
-
x
public float x()X-axis component of the tuple. -
y
public float y()Y-axis component of the tuple. -
z
public float z()Z-axis component of the tuple. -
x
X-axis component of the tuple.- Returns:
this
.
-
y
Y-axis component of the tuple.- Returns:
this
.
-
z
Z-axis component of the tuple.- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode()
-