- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.dfx.Tuple2dfx<Point2dfx>
-
- org.arakhne.afc.math.geometry.d2.dfx.Point2dfx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Point2D<Point2dfx,Vector2dfx>
,Tuple2D<Point2dfx>
,JsonableObject
- Direct Known Subclasses:
OrientedPoint2dfx
public class Point2dfx extends Tuple2dfx<Point2dfx> implements Point2D<Point2dfx,Vector2dfx>
2D Point with 2 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
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Constructor Summary
Constructors Constructor Description Point2dfx()
Construct a zero point.Point2dfx(double[] tuple)
Constructor by copy.Point2dfx(double x, double y)
Construct a point with the given coordinates.Point2dfx(float x, float y)
Construct a point with the given coordinates.Point2dfx(int[] tuple)
Constructor by copy.Point2dfx(int x, int y)
Construct a point with the given coordinates.Point2dfx(long x, long y)
Construct a point with the given coordinates.Point2dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y)
Construct a point with the given properties for its coordinates.Point2dfx(Tuple2D<?> tuple)
Constructor by copy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Point2dfx
convert(Tuple2D<?> tuple)
Convert the given tuple to a real Point2dfx.GeomFactory2dfx
getGeomFactory()
Replies the geometry factory associated to this point.UnmodifiablePoint2D<Point2dfx,Vector2dfx>
toUnmodifiable()
Replies an unmodifiable copy of this point.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.dfx.Tuple2dfx
clone, equals, getX, getY, hashCode, ix, iy, set, setX, setX, setY, setY, 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.Point2D
$amp$amp, $minus, $minus, $minus, $plus, $plus, add, add, add, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getIdistanceL1, getIdistanceLinf, operator_add, operator_and, operator_elvis, operator_equals, operator_minus, operator_minus, operator_minus, operator_notEquals, operator_plus, operator_plus, operator_remove, operator_upTo, operator_upTo, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleAdd, sub, sub, turn, turn, turn, turnLeft, turnLeft, turnLeft, turnRight, turnRight, turnRight
-
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, 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
-
-
-
-
Constructor Detail
-
Point2dfx
public Point2dfx()
Construct a zero point.
-
Point2dfx
public Point2dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y)
Construct a point with the given properties for its coordinates.- Parameters:
x
- property for the x coordinate.y
- property for the y coordinate.
-
Point2dfx
public Point2dfx(Tuple2D<?> tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Point2dfx
public Point2dfx(int[] tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Point2dfx
public Point2dfx(double[] tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Point2dfx
public Point2dfx(int x, int y)
Construct a point with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.
-
Point2dfx
public Point2dfx(float x, float y)
Construct a point with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.
-
Point2dfx
public Point2dfx(double x, double y)
Construct a point with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.
-
Point2dfx
public Point2dfx(long x, long y)
Construct a point with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.
-
-
Method Detail
-
convert
public static Point2dfx convert(Tuple2D<?> tuple)
Convert the given tuple to a real Point2dfx.If the given tuple is already a Point2dfx, it is replied.
- Parameters:
tuple
- the tuple.- Returns:
- the Point2dfx.
- Since:
- 14.0
-
getGeomFactory
public GeomFactory2dfx getGeomFactory()
Description copied from interface:Point2D
Replies the geometry factory associated to this point.- Specified by:
getGeomFactory
in interfacePoint2D<Point2dfx,Vector2dfx>
- Returns:
- the factory.
-
toUnmodifiable
public UnmodifiablePoint2D<Point2dfx,Vector2dfx> toUnmodifiable()
Description copied from interface:Point2D
Replies an unmodifiable copy of this point.- Specified by:
toUnmodifiable
in interfacePoint2D<Point2dfx,Vector2dfx>
- Returns:
- an unmodifiable copy.
-
-