Class Vector1dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d1.dfx.Tuple1dfx<Vector1dfx>
-
- org.arakhne.afc.math.geometry.d1.dfx.Vector1dfx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Vector1D<?,?,?>>
,Vector1D<Vector1dfx,Point1dfx,Segment1D<?,?>>
,Tuple2D<Vector1dfx>
,JsonableObject
public class Vector1dfx extends Tuple1dfx<Vector1dfx> implements Vector1D<Vector1dfx,Point1dfx,Segment1D<?,?>>
1.5D Vector with 2 double precision floating-point FX properties.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Constructor Summary
Constructors Constructor Description Vector1dfx()
Construct a zero vector.Vector1dfx(javafx.beans.property.ObjectProperty<WeakReference<Segment1D<?,?>>> segment, javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y)
Construct a zero vector.Vector1dfx(Point1D<?,?,?> tuple)
Construct a zero vector.Vector1dfx(Segment1D<?,?> segment)
Construct a zero vector.Vector1dfx(Segment1D<?,?> segment, double[] tuple)
Constructor by copy.Vector1dfx(Segment1D<?,?> segment, double x, double y)
Construct a vector with the given coordinates.Vector1dfx(Segment1D<?,?> segment, float x, float y)
Construct a vector with the given coordinates.Vector1dfx(Segment1D<?,?> segment, int[] tuple)
Constructor by copy.Vector1dfx(Segment1D<?,?> segment, int x, int y)
Construct a vector with the given coordinates.Vector1dfx(Segment1D<?,?> segment, long x, long y)
Construct a vector with the given coordinates.Vector1dfx(Segment1D<?,?> segment, Tuple2D<?> tuple)
Constructor by copy.Vector1dfx(Vector1D<?,?,?> tuple)
Construct a zero vector.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Vector1dfx
convert(Tuple1dfx<?> tuple)
Convert the given tuple to a real Vector1dfx.UnmodifiableVector1D<Vector1dfx,Point1dfx,Segment1D<?,?>>
toUnmodifiable()
Replies an unmodifiable copy of this vector.-
Methods inherited from class org.arakhne.afc.math.geometry.d1.dfx.Tuple1dfx
absolute, absolute, add, add, addX, addX, addY, addY, clone, equals, getGeomFactory, getSegment, getX, getY, hashCode, ix, iy, negate, negate, scale, scale, scale, scale, segmentProperty, set, set, set, set, set, set, set, setSegment, setX, setX, setY, setY, sub, sub, subX, subX, subY, subY, toJson, toString, xProperty, yProperty
-
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.d2.Tuple2D
absolute, absolute, add, add, addX, addX, addY, addY, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, clone, epsilonEquals, equals, get, get, get, getX, getY, hashCode, interpolate, interpolate, ix, iy, negate, negate, scale, scale, scale, scale, set, set, set, set, set, setX, setX, setY, setY, sub, sub, subX, subX, subY, subY
-
Methods inherited from interface org.arakhne.afc.math.geometry.d1.Vector1D
$div, $minus, $minus, $minus, $minus, $plus, $plus, $plus, $times, add, add, compareTo, equals, equals, getGeomFactory, getLength, getLengthSquared, getSegment, isUnitVector, normalize, normalize, operator_add, operator_divide, operator_elvis, operator_equals, operator_minus, operator_minus, operator_minus, operator_minus, operator_multiply, operator_notEquals, operator_plus, operator_plus, operator_plus, operator_remove, scaleAdd, scaleAdd, scaleAdd, scaleAdd, setLength, sub, sub, sub, toUnitVector
-
-
-
-
Constructor Detail
-
Vector1dfx
public Vector1dfx(javafx.beans.property.ObjectProperty<WeakReference<Segment1D<?,?>>> segment, javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y)
Construct a zero vector.- Parameters:
segment
- the segment associated to the tuple.x
- curviline coordinate.y
- shift distance.
-
Vector1dfx
public Vector1dfx(Vector1D<?,?,?> tuple)
Construct a zero vector.- Parameters:
tuple
- the tuple to copy.
-
Vector1dfx
public Vector1dfx(Point1D<?,?,?> tuple)
Construct a zero vector.- Parameters:
tuple
- the tuple to copy.
-
Vector1dfx
public Vector1dfx(Segment1D<?,?> segment)
Construct a zero vector.- Parameters:
segment
- the segment associated to the vector.
-
Vector1dfx
public Vector1dfx()
Construct a zero vector.
-
Vector1dfx
public Vector1dfx(Segment1D<?,?> segment, Tuple2D<?> tuple)
Constructor by copy.- Parameters:
segment
- the segment associated to the vector.tuple
- is the tuple to copy.
-
Vector1dfx
public Vector1dfx(Segment1D<?,?> segment, int[] tuple)
Constructor by copy.- Parameters:
segment
- the segment associated to the vector.tuple
- is the tuple to copy.
-
Vector1dfx
public Vector1dfx(Segment1D<?,?> segment, double[] tuple)
Constructor by copy.- Parameters:
segment
- the segment associated to the vector.tuple
- is the tuple to copy.
-
Vector1dfx
public Vector1dfx(Segment1D<?,?> segment, int x, int y)
Construct a vector with the given coordinates.- Parameters:
segment
- the segment associated to the vector.x
- x coordinate.y
- y coordinate.
-
Vector1dfx
public Vector1dfx(Segment1D<?,?> segment, float x, float y)
Construct a vector with the given coordinates.- Parameters:
segment
- the segment associated to the vector.x
- x coordinate.y
- y coordinate.
-
Vector1dfx
public Vector1dfx(Segment1D<?,?> segment, double x, double y)
Construct a vector with the given coordinates.- Parameters:
segment
- the segment associated to the vector.x
- x coordinate.y
- y coordinate.
-
Vector1dfx
public Vector1dfx(Segment1D<?,?> segment, long x, long y)
Construct a vector with the given coordinates.- Parameters:
segment
- the segment associated to the vector.x
- x coordinate.y
- y coordinate.
-
-
Method Detail
-
convert
public static Vector1dfx convert(Tuple1dfx<?> tuple)
Convert the given tuple to a real Vector1dfx.If the given tuple is already a Vector1dfx, it is replied.
- Parameters:
tuple
- the tuple.- Returns:
- the Vector1dfx.
- Since:
- 14.0
-
toUnmodifiable
public UnmodifiableVector1D<Vector1dfx,Point1dfx,Segment1D<?,?>> toUnmodifiable()
Description copied from interface:Vector1D
Replies an unmodifiable copy of this vector.- Specified by:
toUnmodifiable
in interfaceVector1D<Vector1dfx,Point1dfx,Segment1D<?,?>>
- Returns:
- an unmodifiable copy.
-
-