Class InnerComputationPoint1afp
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d1.afp.InnerComputationPoint1afp
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Point1D<?,?,?>>
,Point1D<InnerComputationPoint1afp,InnerComputationVector1afp,Segment1D<?,?>>
,Tuple2D<InnerComputationPoint1afp>
,JsonableObject
public class InnerComputationPoint1afp extends Object implements Point1D<InnerComputationPoint1afp,InnerComputationVector1afp,Segment1D<?,?>>
A point that is used for internal computations.- Since:
- 13.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 InnerComputationPoint1afp(Segment1D<?,?> segment)
Construct the point.InnerComputationPoint1afp(Segment1D<?,?> segment, double x, double y)
Construct the point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InnerComputationPoint1afp
clone()
Clone this point.GeomFactory1D<InnerComputationVector1afp,InnerComputationPoint1afp>
getGeomFactory()
Replies the geometry factory associated to this point.Segment1D<?,?>
getSegment()
Replies the segment.double
getX()
Get the x coordinate.double
getY()
Get the y coordinate.int
ix()
Get the x coordinate.int
iy()
Get the y coordinate.void
set(Segment1D<?,?> segment, double curviline, double shift)
Set this point from the given informations.void
setX(double x)
Set the x coordinate.void
setX(int x)
Set the x coordinate.void
setY(double y)
Set the y coordinate.void
setY(int y)
Set the y coordinate.void
toJson(JsonBuffer buffer)
Replies the Json representation of this node.String
toString()
UnmodifiablePoint1D<InnerComputationPoint1afp,InnerComputationVector1afp,Segment1D<?,?>>
toUnmodifiable()
Replies an unmodifiable copy of this point.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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, getLateralDistance, 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, 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, epsilonEquals, equals, get, get, get, interpolate, interpolate, negate, negate, scale, scale, scale, scale, set, set, set, set, set, sub, sub, subX, subX, subY, subY
-
-
-
-
Constructor Detail
-
InnerComputationPoint1afp
public InnerComputationPoint1afp(Segment1D<?,?> segment)
Construct the point.- Parameters:
segment
- the segment.
-
InnerComputationPoint1afp
public InnerComputationPoint1afp(Segment1D<?,?> segment, double x, double y)
Construct the point.- Parameters:
segment
- the segment.x
- x coordinatey
- y coordinate
-
-
Method Detail
-
toJson
public void toJson(JsonBuffer buffer)
Description copied from interface:JsonableObject
Replies the Json representation of this node.- Specified by:
toJson
in interfaceJsonableObject
- Parameters:
buffer
- the Json buffer.
-
clone
public InnerComputationPoint1afp clone()
Description copied from interface:Tuple2D
Clone this point.- Specified by:
clone
in interfaceTuple2D<InnerComputationPoint1afp>
- Overrides:
clone
in classObject
- Returns:
- the clone.
-
getX
public double getX()
Description copied from interface:Tuple2D
Get the x coordinate.- Specified by:
getX
in interfaceTuple2D<InnerComputationPoint1afp>
- Returns:
- the x coordinate.
-
ix
public int ix()
Description copied from interface:Tuple2D
Get the x coordinate.- Specified by:
ix
in interfaceTuple2D<InnerComputationPoint1afp>
- Returns:
- the x coordinate.
-
setX
public void setX(int x)
Description copied from interface:Tuple2D
Set the x coordinate.- Specified by:
setX
in interfaceTuple2D<InnerComputationPoint1afp>
- Parameters:
x
- value to x coordinate.
-
setX
public void setX(double x)
Description copied from interface:Tuple2D
Set the x coordinate.- Specified by:
setX
in interfaceTuple2D<InnerComputationPoint1afp>
- Parameters:
x
- value to x coordinate.
-
getY
public double getY()
Description copied from interface:Tuple2D
Get the y coordinate.- Specified by:
getY
in interfaceTuple2D<InnerComputationPoint1afp>
- Returns:
- the y coordinate.
-
iy
public int iy()
Description copied from interface:Tuple2D
Get the y coordinate.- Specified by:
iy
in interfaceTuple2D<InnerComputationPoint1afp>
- Returns:
- the y coordinate.
-
setY
public void setY(int y)
Description copied from interface:Tuple2D
Set the y coordinate.- Specified by:
setY
in interfaceTuple2D<InnerComputationPoint1afp>
- Parameters:
y
- value to y coordinate.
-
setY
public void setY(double y)
Description copied from interface:Tuple2D
Set the y coordinate.- Specified by:
setY
in interfaceTuple2D<InnerComputationPoint1afp>
- Parameters:
y
- value to y coordinate.
-
getSegment
public Segment1D<?,?> getSegment()
Description copied from interface:Point1D
Replies the segment.- Specified by:
getSegment
in interfacePoint1D<InnerComputationPoint1afp,InnerComputationVector1afp,Segment1D<?,?>>
- Returns:
- the segment or
null
if the weak reference has lost the segment.
-
set
public void set(Segment1D<?,?> segment, double curviline, double shift)
Description copied from interface:Point1D
Set this point from the given informations.- Specified by:
set
in interfacePoint1D<InnerComputationPoint1afp,InnerComputationVector1afp,Segment1D<?,?>>
- Parameters:
segment
- the segmentcurviline
- the curviline coordinateshift
- the jutting coordinate
-
toUnmodifiable
public UnmodifiablePoint1D<InnerComputationPoint1afp,InnerComputationVector1afp,Segment1D<?,?>> toUnmodifiable()
Description copied from interface:Point1D
Replies an unmodifiable copy of this point.- Specified by:
toUnmodifiable
in interfacePoint1D<InnerComputationPoint1afp,InnerComputationVector1afp,Segment1D<?,?>>
- Returns:
- an unmodifiable copy.
-
getGeomFactory
public GeomFactory1D<InnerComputationVector1afp,InnerComputationPoint1afp> getGeomFactory()
Description copied from interface:Point1D
Replies the geometry factory associated to this point.- Specified by:
getGeomFactory
in interfacePoint1D<InnerComputationPoint1afp,InnerComputationVector1afp,Segment1D<?,?>>
- Returns:
- the factory.
-
-