Class Vector3dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.dfx.Tuple3dfx<Vector3dfx>
-
- org.arakhne.afc.math.geometry.d3.dfx.Vector3dfx
-
- All Implemented Interfaces:
Serializable,Cloneable,Tuple3D<Vector3dfx>,Vector3D<Vector3dfx,Point3dfx>,JsonableObject
public class Vector3dfx extends Tuple3dfx<Vector3dfx> implements Vector3D<Vector3dfx,Point3dfx>
3D Vector 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, Hamza JAFFALI, Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d3.Vector3D
Vector3D.PowerResult<T extends Vector3D<? super T,?>>
-
-
Constructor Summary
Constructors Constructor Description Vector3dfx()Construct a zero vector.Vector3dfx(double[] tuple)Constructor by copy.Vector3dfx(double x, double y, double z)Construct a vector with the given coordinates.Vector3dfx(float x, float y, float z)Construct a vector with the given coordinates.Vector3dfx(int[] tuple)Constructor by copy.Vector3dfx(int x, int y, int z)Construct a vector with the given coordinates.Vector3dfx(long x, long y, long z)Construct a vector with the given coordinates.Vector3dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)Construct a vector with the given coordinate properties.Vector3dfx(Tuple3D<?> tuple)Constructor by copy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3dfxclone()Clone this point.static Vector3dfxconvert(Tuple3D<?> tuple)Convert the given tuple to a real Vector3dfx.GeomFactory3dfxgetGeomFactory()Replies the geometry factory associated to this point.doublegetLength()Returns the length of this vector.doublegetLengthSquared()Returns the squared length of this vector.javafx.beans.property.ReadOnlyDoublePropertylengthProperty()Replies the property that represents the length of the vector.javafx.beans.property.ReadOnlyDoublePropertylengthSquaredProperty()Replies the property that represents the length of the vector.UnmodifiableVector3D<Vector3dfx,Point3dfx>toUnmodifiable()Replies an unmodifiable copy of this vector.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.dfx.Tuple3dfx
equals, getX, getY, getZ, hashCode, ix, iy, iz, set, setX, setX, setY, setY, setZ, setZ, toJson, toString, xProperty, yProperty, zProperty
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
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, equals, get, get, get, getX, getY, getZ, hashCode, interpolate, interpolate, ix, iy, iz, negate, negate, scale, scale, scale, scale, set, set, set, set, set, setX, setX, setY, setY, setZ, setZ, sub, sub, subX, subX, subY, subY, subZ, subZ
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Vector3D
add, add, angle, cross, cross, crossLeftHand, crossLeftHand, crossRightHand, crossRightHand, dot, isColinear, isUnitVector, normalize, normalize, operator_add, operator_divide, operator_doubleDotLessThan, operator_elvis, operator_equals, operator_greaterThanDoubleDot, operator_minus, operator_minus, operator_multiply, operator_multiply, operator_notEquals, operator_plus, operator_plus, operator_power, operator_power, operator_remove, operator_upTo, perp, power, scaleAdd, scaleAdd, scaleAdd, scaleAdd, setLength, signedAngle, sub, sub, sub, toColinearVector, toUnitVector, turnVector
-
-
-
-
Constructor Detail
-
Vector3dfx
public Vector3dfx()
Construct a zero vector.
-
Vector3dfx
public Vector3dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y, javafx.beans.property.DoubleProperty z)Construct a vector with the given coordinate properties.- Parameters:
x- the property for the x coordinate.y- the property for the y coordinate.z- the property for the y coordinate.
-
Vector3dfx
public Vector3dfx(Tuple3D<?> tuple)
Constructor by copy.- Parameters:
tuple- is the tuple to copy.
-
Vector3dfx
public Vector3dfx(int[] tuple)
Constructor by copy.- Parameters:
tuple- is the tuple to copy.
-
Vector3dfx
public Vector3dfx(double[] tuple)
Constructor by copy.- Parameters:
tuple- is the tuple to copy.
-
Vector3dfx
public Vector3dfx(int x, int y, int z)Construct a vector with the given coordinates.- Parameters:
x- x coordinate.y- y coordinate.z- z coordinate.
-
Vector3dfx
public Vector3dfx(float x, float y, float z)Construct a vector with the given coordinates.- Parameters:
x- x coordinate.y- y coordinate.z- z coordinate.
-
Vector3dfx
public Vector3dfx(double x, double y, double z)Construct a vector with the given coordinates.- Parameters:
x- x coordinate.y- y coordinate.z- z coordinate.
-
Vector3dfx
public Vector3dfx(long x, long y, long z)Construct a vector with the given coordinates.- Parameters:
x- x coordinate.y- y coordinate.z- z coordinate.
-
-
Method Detail
-
clone
public Vector3dfx clone()
Description copied from interface:Tuple3DClone this point.- Specified by:
clonein interfaceTuple3D<Vector3dfx>- Overrides:
clonein classTuple3dfx<Vector3dfx>- Returns:
- the clone.
-
convert
public static Vector3dfx convert(Tuple3D<?> tuple)
Convert the given tuple to a real Vector3dfx.If the given tuple is already a Vector3dfx, it is replied.
- Parameters:
tuple- the tuple.- Returns:
- the Vector3dfx.
- Since:
- 14.0
-
getLength
public double getLength()
Description copied from interface:Vector3DReturns the length of this vector.- Specified by:
getLengthin interfaceVector3D<Vector3dfx,Point3dfx>- Returns:
- the length of this vector
-
lengthProperty
public javafx.beans.property.ReadOnlyDoubleProperty lengthProperty()
Replies the property that represents the length of the vector.- Returns:
- the length property
-
getLengthSquared
public double getLengthSquared()
Description copied from interface:Vector3DReturns the squared length of this vector.- Specified by:
getLengthSquaredin interfaceVector3D<Vector3dfx,Point3dfx>- Returns:
- the squared length of this vector
-
lengthSquaredProperty
public javafx.beans.property.ReadOnlyDoubleProperty lengthSquaredProperty()
Replies the property that represents the length of the vector.- Returns:
- the length property
-
getGeomFactory
public GeomFactory3dfx getGeomFactory()
Description copied from interface:Vector3DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfaceVector3D<Vector3dfx,Point3dfx>- Returns:
- the factory.
-
toUnmodifiable
public UnmodifiableVector3D<Vector3dfx,Point3dfx> toUnmodifiable()
Description copied from interface:Vector3DReplies an unmodifiable copy of this vector.- Specified by:
toUnmodifiablein interfaceVector3D<Vector3dfx,Point3dfx>- Returns:
- an unmodifiable copy.
-
-