- java.lang.Object
-
- org.arakhne.afc.math.geometry.d1.d.Tuple1d<Point1d>
-
- org.arakhne.afc.math.geometry.d1.d.Point1d
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Point1D<?,?,?>>
,Point1D<Point1d,Vector1d,Segment1D<?,?>>
,Tuple2D<Point1d>
,JsonableObject
public class Point1d extends Tuple1d<Point1d> implements Point1D<Point1d,Vector1d,Segment1D<?,?>>
1.5D Point with 2 double precision floating-point numbers.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Constructor Summary
Constructors Constructor Description Point1d()
Construct a zero vector.Point1d(Point1D<?,?,?> tuple)
Construct a zero vector.Point1d(Segment1D<?,?> segment)
Construct a zero vector.Point1d(Segment1D<?,?> segment, double[] tuple)
Constructor by copy.Point1d(Segment1D<?,?> segment, double x, double y)
Construct a vector with the given coordinates.Point1d(Segment1D<?,?> segment, float x, float y)
Construct a vector with the given coordinates.Point1d(Segment1D<?,?> segment, int[] tuple)
Constructor by copy.Point1d(Segment1D<?,?> segment, int x, int y)
Construct a vector with the given coordinates.Point1d(Segment1D<?,?> segment, long x, long y)
Construct a vector with the given coordinates.Point1d(Segment1D<?,?> segment, Tuple2D<?> tuple)
Constructor by copy.Point1d(Vector1D<?,?,?> tuple)
Construct a zero vector.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Point1d
convert(Tuple1d<?> tuple)
Convert the given tuple to a real Point1d.UnmodifiablePoint1D<Point1d,Vector1d,Segment1D<?,?>>
toUnmodifiable()
Replies an unmodifiable copy of this point.-
Methods inherited from class org.arakhne.afc.math.geometry.d1.d.Tuple1d
absolute, absolute, add, add, addX, addX, addY, addY, clone, equals, getGeomFactory, getSegment, getX, getY, hashCode, ix, iy, negate, negate, scale, scale, scale, scale, set, set, set, set, set, set, setSegment, setX, setX, setY, setY, sub, sub, subX, subX, subY, subY, toJson, toString
-
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.d1.Point1D
$minus, $minus, $minus, $plus, $plus, add, clamp, compareTo, epsilonEquals, equals, equals, getCurvilineCoordinate, getDistance, getDistanceCurviline, getDistanceL1, getDistanceLinf, getDistanceShift, getDistanceSquared, getGeomFactory, getLateralDistance, getSegment, hashCode, isOnSameSegment, isOnSegment, operator_add, operator_elvis, operator_equals, operator_minus, operator_minus, operator_minus, operator_notEquals, operator_plus, operator_plus, operator_remove, operator_upTo, set, set, set, setCurvilineCoordinate, setLateralDistance, setSegment, sub
-
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, 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
-
Point1d
public Point1d(Vector1D<?,?,?> tuple)
Construct a zero vector.- Parameters:
tuple
- the tuple to copy.
-
Point1d
public Point1d(Point1D<?,?,?> tuple)
Construct a zero vector.- Parameters:
tuple
- the tuple to copy.
-
Point1d
public Point1d(Segment1D<?,?> segment)
Construct a zero vector.- Parameters:
segment
- the segment associated to the vector.
-
Point1d
public Point1d()
Construct a zero vector.
-
Point1d
public Point1d(Segment1D<?,?> segment, Tuple2D<?> tuple)
Constructor by copy.- Parameters:
segment
- the segment associated to the vector.tuple
- is the tuple to copy.
-
Point1d
public Point1d(Segment1D<?,?> segment, int[] tuple)
Constructor by copy.- Parameters:
segment
- the segment associated to the vector.tuple
- is the tuple to copy.
-
Point1d
public Point1d(Segment1D<?,?> segment, double[] tuple)
Constructor by copy.- Parameters:
segment
- the segment associated to the vector.tuple
- is the tuple to copy.
-
Point1d
public Point1d(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.
-
Point1d
public Point1d(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.
-
Point1d
public Point1d(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.
-
Point1d
public Point1d(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 Point1d convert(Tuple1d<?> tuple)
Convert the given tuple to a real Point1d.If the given tuple is already a Point1d, it is replied.
- Parameters:
tuple
- the tuple.- Returns:
- the Point1d.
- Since:
- 14.0
-
toUnmodifiable
public UnmodifiablePoint1D<Point1d,Vector1d,Segment1D<?,?>> toUnmodifiable()
Description copied from interface:Point1D
Replies an unmodifiable copy of this point.- Specified by:
toUnmodifiable
in interfacePoint1D<Point1d,Vector1d,Segment1D<?,?>>
- Returns:
- an unmodifiable copy.
-
-