Class Tuple3dfx<RT extends Tuple3dfx<? super RT>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.dfx.Tuple3dfx<RT>
-
- Type Parameters:
RT
- is the type of the data returned by the tuple.
- All Implemented Interfaces:
Serializable
,Cloneable
,Tuple3D<RT>
,JsonableObject
- Direct Known Subclasses:
Point3dfx
,Vector3dfx
public class Tuple3dfx<RT extends Tuple3dfx<? super RT>> extends Object implements Tuple3D<RT>
3D tuple with 3 double precision floating-point FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Olivier LAMOTTE, Thomas PIOTROWSKI, Hamza JAFFALI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Constructor Summary
Constructors Constructor Description Tuple3dfx()
Construct a zero tuple.Tuple3dfx(double[] tuple)
Constructor by copy.Tuple3dfx(double x, double y, double z)
Construct a tuple with the three given coordinates.Tuple3dfx(int[] tuple)
Constructor by copy.Tuple3dfx(int x, int y, int z)
Construct a tuple with the three given coordinates.Tuple3dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)
Construct a tuple with the two given properties for its coordinates.Tuple3dfx(Tuple3D<?> tuple)
Constructor by copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RT
clone()
Clone this point.boolean
equals(Object t1)
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.double
getX()
Get the x coordinate.double
getY()
Get the y coordinate.double
getZ()
Get the z coordinate.int
hashCode()
Returns a hash code value based on the data values in this object.int
ix()
Get the x coordinate.int
iy()
Get the y coordinate.int
iz()
Get the z coordinate.(package private) void
set(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)
Change the x, y and z properties.void
setX(double x)
Set the x coordinate.void
setX(int x)
Set the x coordinate.void
setY(double y)
Set the y coordinate.void
setY(int y)
Set the y coordinate.void
setZ(double z)
Set the z coordinate.void
setZ(int z)
Set the z coordinate.void
toJson(JsonBuffer buffer)
Replies the Json representation of this node.String
toString()
javafx.beans.property.DoubleProperty
xProperty()
Replies the x property.javafx.beans.property.DoubleProperty
yProperty()
Replies the y property.javafx.beans.property.DoubleProperty
zProperty()
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
-
Tuple3dfx
public Tuple3dfx()
Construct a zero tuple.
-
Tuple3dfx
public Tuple3dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)
Construct a tuple with the two given properties for its coordinates.- Parameters:
x
- the property for the x coordinate.y
- the property for the y coordinate.z
- the property for the z coordinate.
-
Tuple3dfx
public Tuple3dfx(Tuple3D<?> tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Tuple3dfx
public Tuple3dfx(int[] tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Tuple3dfx
public Tuple3dfx(double[] tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Tuple3dfx
public Tuple3dfx(int x, int y, int z)
Construct a tuple with the three given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.z
- z coordinate.
-
Tuple3dfx
public Tuple3dfx(double x, double y, double z)
Construct a tuple with the three given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.z
- z coordinate.
-
-
Method Detail
-
set
void set(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)
Change the x, y and z properties.- Parameters:
x
- the new x property.y
- the new y property.z
- the new z property.
-
equals
@Pure public boolean equals(Object t1)
Description copied from interface:Tuple3D
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.
-
hashCode
@Pure public int hashCode()
Description copied from interface:Tuple3D
Returns 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:JsonableObject
Replies the Json representation of this node.- Specified by:
toJson
in interfaceJsonableObject
- Parameters:
buffer
- the Json buffer.
-
xProperty
@Pure public javafx.beans.property.DoubleProperty xProperty()
Replies the x property.- Returns:
- the x property.
-
yProperty
@Pure public javafx.beans.property.DoubleProperty yProperty()
Replies the y property.- Returns:
- the y property.
-
zProperty
@Pure public javafx.beans.property.DoubleProperty zProperty()
Replies the z property.- Returns:
- the z property.
-
getX
public double getX()
Description copied from interface:Tuple3D
Get the x coordinate.
-
ix
public int ix()
Description copied from interface:Tuple3D
Get the x coordinate.
-
setX
public void setX(int x)
Description copied from interface:Tuple3D
Set the x coordinate.
-
setX
public void setX(double x)
Description copied from interface:Tuple3D
Set the x coordinate.
-
getY
public double getY()
Description copied from interface:Tuple3D
Get the y coordinate.
-
iy
public int iy()
Description copied from interface:Tuple3D
Get the y coordinate.
-
setY
public void setY(int y)
Description copied from interface:Tuple3D
Set the y coordinate.
-
setY
public void setY(double y)
Description copied from interface:Tuple3D
Set the y coordinate.
-
getZ
public double getZ()
Description copied from interface:Tuple3D
Get the z coordinate.
-
iz
public int iz()
Description copied from interface:Tuple3D
Get the z coordinate.
-
setZ
public void setZ(int z)
Description copied from interface:Tuple3D
Set the z coordinate.
-
-