Class Tuple3ifx<RT extends Tuple3ifx<? super RT>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.ifx.Tuple3ifx<RT>
-
- Type Parameters:
RT- is the type of return tuples by the tuple.
- All Implemented Interfaces:
Serializable,Cloneable,Tuple3D<RT>,JsonableObject
- Direct Known Subclasses:
Point3ifx,Vector3ifx
public class Tuple3ifx<RT extends Tuple3ifx<? super RT>> extends Object implements Tuple3D<RT>
3D tuple with 3 integer FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Constructor Summary
Constructors Constructor Description Tuple3ifx()Construct a zero tuple.Tuple3ifx(double[] tuple)Constructor.Tuple3ifx(double x, double y, double z)Construct a tuple with the given coordinates.Tuple3ifx(int[] tuple)Constructor.Tuple3ifx(int x, int y, int z)Construct a tuple with the given coordinates.Tuple3ifx(javafx.beans.property.IntegerProperty xProperty, javafx.beans.property.IntegerProperty yProperty, javafx.beans.property.IntegerProperty zProperty)Construct a tuple with the given properties for the coordinates.Tuple3ifx(Tuple3D<?> tuple)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RTclone()Clone this point.booleanequals(Object object)Returns true if the Object t1 is of type Tuple2f and all of the data members of t1 are equal to the corresponding data members in this Tuple2f.doublegetX()Get the x coordinate.doublegetY()Get the y coordinate.doublegetZ()Get the z coordinate.inthashCode()Returns a hash code value based on the data values in this object.intix()Get the x coordinate.intiy()Get the y coordinate.intiz()Get the z coordinate.voidsetX(double x)Set the x coordinate.voidsetX(int x)Set the x coordinate.voidsetY(double y)Set the y coordinate.voidsetY(int y)Set the y coordinate.voidsetZ(double z)Set the z coordinate.voidsetZ(int z)Set the z coordinate.voidtoJson(JsonBuffer buffer)Replies the Json representation of this node.StringtoString()javafx.beans.property.IntegerPropertyxProperty()Replies the x property.javafx.beans.property.IntegerPropertyyProperty()Replies the y property.javafx.beans.property.IntegerPropertyzProperty()Replies the z property.-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Tuple3D
absolute, absolute, add, add, addX, addX, addY, addY, addZ, addZ, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, epsilonEquals, equals, get, get, get, interpolate, interpolate, negate, negate, scale, scale, scale, scale, set, set, set, set, set, sub, sub, subX, subX, subY, subY, subZ, subZ
-
-
-
-
Constructor Detail
-
Tuple3ifx
public Tuple3ifx()
Construct a zero tuple.
-
Tuple3ifx
public Tuple3ifx(javafx.beans.property.IntegerProperty xProperty, javafx.beans.property.IntegerProperty yProperty, javafx.beans.property.IntegerProperty zProperty)Construct a tuple with the given properties for the coordinates.- Parameters:
xProperty- property for the x coordinate.yProperty- property for the y coordinate.zProperty- property for the z coordinate.
-
Tuple3ifx
public Tuple3ifx(Tuple3D<?> tuple)
Constructor.- Parameters:
tuple- is the tuple to copy.
-
Tuple3ifx
public Tuple3ifx(int[] tuple)
Constructor.- Parameters:
tuple- is the tuple to copy.
-
Tuple3ifx
public Tuple3ifx(double[] tuple)
Constructor.- Parameters:
tuple- is the tuple to copy.
-
Tuple3ifx
public Tuple3ifx(double x, double y, double z)Construct a tuple with the given coordinates.- Parameters:
x- x coordinate.y- y coordinate.z- z coordinate.
-
Tuple3ifx
public Tuple3ifx(int x, int y, int z)Construct a tuple with the given coordinates.- Parameters:
x- x coordinate.y- y coordinate.z- z coordinate.
-
-
Method Detail
-
equals
@Pure public boolean equals(Object object)
Description copied from interface:Tuple3DReturns true if the Object t1 is of type Tuple2f and all of the data members of t1 are equal to the corresponding data members in this Tuple2f.
-
hashCode
@Pure public int hashCode()
Description copied from interface:Tuple3DReturns a hash code value based on the data values in this object. Two different Tuple2f objects with identical data values (i.e., Tuple2f.equals returns true) will return the same hash code value. Two objects with different data members may return the same hash value, although this is not likely.
-
toJson
public void toJson(JsonBuffer buffer)
Description copied from interface:JsonableObjectReplies the Json representation of this node.- Specified by:
toJsonin interfaceJsonableObject- Parameters:
buffer- the Json buffer.
-
xProperty
@Pure public javafx.beans.property.IntegerProperty xProperty()
Replies the x property.- Returns:
- the x property.
-
yProperty
@Pure public javafx.beans.property.IntegerProperty yProperty()
Replies the y property.- Returns:
- the y property.
-
zProperty
@Pure public javafx.beans.property.IntegerProperty zProperty()
Replies the z property.- Returns:
- the z property.
-
getX
public double getX()
Description copied from interface:Tuple3DGet the x coordinate.
-
ix
public int ix()
Description copied from interface:Tuple3DGet the x coordinate.
-
setX
public void setX(int x)
Description copied from interface:Tuple3DSet the x coordinate.
-
setX
public void setX(double x)
Description copied from interface:Tuple3DSet the x coordinate.
-
getY
public double getY()
Description copied from interface:Tuple3DGet the y coordinate.
-
iy
public int iy()
Description copied from interface:Tuple3DGet the y coordinate.
-
setY
public void setY(int y)
Description copied from interface:Tuple3DSet the y coordinate.
-
setY
public void setY(double y)
Description copied from interface:Tuple3DSet the y coordinate.
-
getZ
public double getZ()
Description copied from interface:Tuple3DGet the z coordinate.
-
iz
public int iz()
Description copied from interface:Tuple3DGet the z coordinate.
-
setZ
public void setZ(int z)
Description copied from interface:Tuple3DSet the z coordinate.
-
-