- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.ifx.Tuple2ifx<Point2ifx>
-
- org.arakhne.afc.math.geometry.d2.ifx.Point2ifx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Point2D<Point2ifx,Vector2ifx>
,Tuple2D<Point2ifx>
,JsonableObject
- Direct Known Subclasses:
OrientedPoint2ifx
public class Point2ifx extends Tuple2ifx<Point2ifx> implements Point2D<Point2ifx,Vector2ifx>
2D Point with 2 integer FX properties.- Since:
- 13.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 Point2ifx()
Construct a zero point.Point2ifx(double[] tuple)
Constructor by copy.Point2ifx(double x, double y)
Construct a point with the given coordinates.Point2ifx(float x, float y)
Construct a point with the given coordinates.Point2ifx(int[] tuple)
Constructor by copy.Point2ifx(int x, int y)
Construct a point with the given coordinates.Point2ifx(long x, long y)
Construct a point with the given coordinates.Point2ifx(javafx.beans.property.IntegerProperty x, javafx.beans.property.IntegerProperty y)
Construct a point with the given properties for its coordinates.Point2ifx(Tuple2D<?> tuple)
Constructor by copy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Point2ifx
convert(Tuple2D<?> tuple)
Convert the given tuple to a real Point2ifx.GeomFactory2ifx
getGeomFactory()
Replies the geometry factory associated to this point.UnmodifiablePoint2D<Point2ifx,Vector2ifx>
toUnmodifiable()
Replies an unmodifiable copy of this point.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.ifx.Tuple2ifx
clone, equals, getX, getY, hashCode, ix, iy, 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
-
Point2ifx
public Point2ifx()
Construct a zero point.
-
Point2ifx
public Point2ifx(javafx.beans.property.IntegerProperty x, javafx.beans.property.IntegerProperty y)
Construct a point with the given properties for its coordinates.- Parameters:
x
- property for the x coordinate.y
- property for the y coordinate.
-
Point2ifx
public Point2ifx(Tuple2D<?> tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Point2ifx
public Point2ifx(int[] tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Point2ifx
public Point2ifx(double[] tuple)
Constructor by copy.- Parameters:
tuple
- is the tuple to copy.
-
Point2ifx
public Point2ifx(int x, int y)
Construct a point with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.
-
Point2ifx
public Point2ifx(float x, float y)
Construct a point with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.
-
Point2ifx
public Point2ifx(double x, double y)
Construct a point with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.
-
Point2ifx
public Point2ifx(long x, long y)
Construct a point with the given coordinates.- Parameters:
x
- x coordinate.y
- y coordinate.
-
-
Method Detail
-
convert
public static Point2ifx convert(Tuple2D<?> tuple)
Convert the given tuple to a real Point2ifx.If the given tuple is already a Point2ifx, it is replied.
- Parameters:
tuple
- the tuple.- Returns:
- the Point2ifx.
- Since:
- 14.0
-
getGeomFactory
public GeomFactory2ifx getGeomFactory()
Description copied from interface:Point2D
Replies the geometry factory associated to this point.- Specified by:
getGeomFactory
in interfacePoint2D<Point2ifx,Vector2ifx>
- Returns:
- the factory.
-
toUnmodifiable
@Pure public UnmodifiablePoint2D<Point2ifx,Vector2ifx> toUnmodifiable()
Description copied from interface:Point2D
Replies an unmodifiable copy of this point.- Specified by:
toUnmodifiable
in interfacePoint2D<Point2ifx,Vector2ifx>
- Returns:
- an unmodifiable copy.
-
-