Class Vector3ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.ifx.Tuple3ifx<Vector3ifx>
-
- org.arakhne.afc.math.geometry.d3.ifx.Vector3ifx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Tuple3D<Vector3ifx>
,Vector3D<Vector3ifx,Point3ifx>
,JsonableObject
public class Vector3ifx extends Tuple3ifx<Vector3ifx> implements Vector3D<Vector3ifx,Point3ifx>
3D Vector 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
-
-
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 Vector3ifx()
Construct a zero vector.Vector3ifx(double[] tuple)
Constructor by copy.Vector3ifx(double x, double y, double z)
Construct a vector with the given coordinates.Vector3ifx(float x, float y, float z)
Construct a vector with the given coordinates.Vector3ifx(int[] tuple)
Constructor by copy.Vector3ifx(int x, int y, int z)
Construct a vector with the given coordinates.Vector3ifx(long x, long y, long z)
Construct a vector with the given coordinates.Vector3ifx(javafx.beans.property.IntegerProperty xProperty, javafx.beans.property.IntegerProperty yProperty, javafx.beans.property.IntegerProperty zProperty)
Construct a vector with the given properties for the coordinates.Vector3ifx(Tuple3D<?> tuple)
Constructor by copy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3ifx
clone()
Clone this point.static Vector3ifx
convert(Tuple3D<?> tuple)
Convert the given tuple to a real Vector3ifx.GeomFactory3ifx
getGeomFactory()
Replies the geometry factory associated to this point.double
getLength()
Returns the length of this vector.double
getLengthSquared()
Returns the squared length of this vector.javafx.beans.property.DoubleProperty
lengthProperty()
Replies the property that represents the length of the vector.javafx.beans.property.DoubleProperty
lengthSquaredProperty()
Replies the property that represents the length of the vector.UnmodifiableVector3D<Vector3ifx,Point3ifx>
toUnmodifiable()
Replies an unmodifiable copy of this vector.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.ifx.Tuple3ifx
equals, getX, getY, getZ, hashCode, ix, iy, iz, 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
-
Vector3ifx
public Vector3ifx()
Construct a zero vector.
-
Vector3ifx
public Vector3ifx(javafx.beans.property.IntegerProperty xProperty, javafx.beans.property.IntegerProperty yProperty, javafx.beans.property.IntegerProperty zProperty)
Construct a vector 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.
-
Vector3ifx
public Vector3ifx(Tuple3D<?> tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Vector3ifx
public Vector3ifx(int[] tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Vector3ifx
public Vector3ifx(double[] tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Vector3ifx
public Vector3ifx(int x, int y, int z)
Construct a vector with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.z
- z coordinate.
-
Vector3ifx
public Vector3ifx(float x, float y, float z)
Construct a vector with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.z
- z coordinate.
-
Vector3ifx
public Vector3ifx(double x, double y, double z)
Construct a vector with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.z
- z coordinate.
-
Vector3ifx
public Vector3ifx(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
-
convert
public static Vector3ifx convert(Tuple3D<?> tuple)
Convert the given tuple to a real Vector3ifx.If the given tuple is already a Vector3ifx, it is replied.
- Parameters:
tuple
- the tuple.- Returns:
- the Vector3ifx.
- Since:
- 14.0
-
clone
public Vector3ifx clone()
Description copied from interface:Tuple3D
Clone this point.- Specified by:
clone
in interfaceTuple3D<Vector3ifx>
- Overrides:
clone
in classTuple3ifx<Vector3ifx>
- Returns:
- the clone.
-
getLength
public double getLength()
Description copied from interface:Vector3D
Returns the length of this vector.- Specified by:
getLength
in interfaceVector3D<Vector3ifx,Point3ifx>
- Returns:
- the length of this vector
-
lengthProperty
public javafx.beans.property.DoubleProperty lengthProperty()
Replies the property that represents the length of the vector.- Returns:
- the length property
-
getLengthSquared
public double getLengthSquared()
Description copied from interface:Vector3D
Returns the squared length of this vector.- Specified by:
getLengthSquared
in interfaceVector3D<Vector3ifx,Point3ifx>
- Returns:
- the squared length of this vector
-
lengthSquaredProperty
public javafx.beans.property.DoubleProperty lengthSquaredProperty()
Replies the property that represents the length of the vector.- Returns:
- the length property
-
getGeomFactory
public GeomFactory3ifx getGeomFactory()
Description copied from interface:Vector3D
Replies the geometry factory associated to this point.- Specified by:
getGeomFactory
in interfaceVector3D<Vector3ifx,Point3ifx>
- Returns:
- the factory.
-
toUnmodifiable
@Pure public UnmodifiableVector3D<Vector3ifx,Point3ifx> toUnmodifiable()
Description copied from interface:Vector3D
Replies an unmodifiable copy of this vector.- Specified by:
toUnmodifiable
in interfaceVector3D<Vector3ifx,Point3ifx>
- Returns:
- an unmodifiable copy.
-
-