public abstract class Tuple3f extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected float |
x
X-axis component of the tuple.
|
protected float |
y
Y-axis component of the tuple.
|
protected float |
z
Z-axis component of the tuple.
|
Constructor and Description |
---|
Tuple3f() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
hashCode() |
void |
setValueByDimension(int dimensionIndex,
float valueToAssign)
Assigns a value to a component of a tuple corresponding to a particular dimension by index.
|
String |
toString() |
float |
valueByDimension(Axis axis)
A component of a tuple corresponding to a particular axis.
|
float |
valueByDimension(int dimensionIndex)
A component of a tuple corresponding to a particular dimension by index.
|
float |
x()
X-axis component of the tuple.
|
Tuple3f |
x(float x)
X-axis component of the tuple.
|
float |
y()
Y-axis component of the tuple.
|
Tuple3f |
y(float y)
Y-axis component of the tuple.
|
float |
z()
Z-axis component of the tuple.
|
Tuple3f |
z(float z)
Z-axis component of the tuple.
|
protected float x
protected float y
protected float z
public final float valueByDimension(Axis axis)
axis
- the axis.public final float valueByDimension(int dimensionIndex)
dimensionIndex
- the index corresponding to an axis, as per AxisConverter
.public final void setValueByDimension(int dimensionIndex, float valueToAssign)
dimensionIndex
- the index corresponding to an axis, as per AxisConverter
.valueToAssign
- the value to assign.public float x()
public float y()
public float z()
public Tuple3f x(float x)
this
.public Tuple3f y(float y)
this
.public Tuple3f z(float z)
this
.protected boolean canEqual(Object other)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.