Class InnerComputationPoint2ai
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.ai.InnerComputationPoint2ai
-
- All Implemented Interfaces:
Serializable,Cloneable,Point2D<InnerComputationPoint2ai,InnerComputationVector2ai>,Tuple2D<InnerComputationPoint2ai>,JsonableObject
public class InnerComputationPoint2ai extends Object implements Point2D<InnerComputationPoint2ai,InnerComputationVector2ai>
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 InnerComputationPoint2ai()Construct point.InnerComputationPoint2ai(int x, int y)Construct point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InnerComputationPoint2aiclone()Clone this point.GeomFactory2D<InnerComputationVector2ai,InnerComputationPoint2ai>getGeomFactory()Replies the geometry factory associated to this point.doublegetX()Get the x coordinate.doublegetY()Get the y coordinate.intix()Get the x coordinate.intiy()Get the y coordinate.voidsetX(double x)Set the x coordinate.voidsetX(int x)Set the x coordinate.voidsetY(double y)Set the y coordinate.voidsetY(int y)Set the y coordinate.voidtoJson(JsonBuffer buffer)Replies the Json representation of this node.StringtoString()UnmodifiablePoint2D<InnerComputationPoint2ai,InnerComputationVector2ai>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.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, epsilonEquals, equals, equals, get, get, get, hashCode, interpolate, interpolate, negate, negate, scale, scale, scale, scale, set, set, set, set, set, sub, sub, subX, subX, subY, subY
-
-
-
-
Method Detail
-
clone
public InnerComputationPoint2ai clone()
Description copied from interface:Tuple2DClone this point.- Specified by:
clonein interfaceTuple2D<InnerComputationPoint2ai>- Overrides:
clonein classObject- Returns:
- the clone.
-
getX
public double getX()
Description copied from interface:Tuple2DGet the x coordinate.- Specified by:
getXin interfaceTuple2D<InnerComputationPoint2ai>- Returns:
- the x coordinate.
-
ix
public int ix()
Description copied from interface:Tuple2DGet the x coordinate.- Specified by:
ixin interfaceTuple2D<InnerComputationPoint2ai>- Returns:
- the x coordinate.
-
setX
public void setX(int x)
Description copied from interface:Tuple2DSet the x coordinate.- Specified by:
setXin interfaceTuple2D<InnerComputationPoint2ai>- Parameters:
x- value to x coordinate.
-
setX
public void setX(double x)
Description copied from interface:Tuple2DSet the x coordinate.- Specified by:
setXin interfaceTuple2D<InnerComputationPoint2ai>- Parameters:
x- value to x coordinate.
-
getY
public double getY()
Description copied from interface:Tuple2DGet the y coordinate.- Specified by:
getYin interfaceTuple2D<InnerComputationPoint2ai>- Returns:
- the y coordinate.
-
iy
public int iy()
Description copied from interface:Tuple2DGet the y coordinate.- Specified by:
iyin interfaceTuple2D<InnerComputationPoint2ai>- Returns:
- the y coordinate.
-
setY
public void setY(int y)
Description copied from interface:Tuple2DSet the y coordinate.- Specified by:
setYin interfaceTuple2D<InnerComputationPoint2ai>- Parameters:
y- value to y coordinate.
-
setY
public void setY(double y)
Description copied from interface:Tuple2DSet the y coordinate.- Specified by:
setYin interfaceTuple2D<InnerComputationPoint2ai>- Parameters:
y- value to y coordinate.
-
getGeomFactory
public GeomFactory2D<InnerComputationVector2ai,InnerComputationPoint2ai> getGeomFactory()
Description copied from interface:Point2DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfacePoint2D<InnerComputationPoint2ai,InnerComputationVector2ai>- Returns:
- the factory.
-
toUnmodifiable
public UnmodifiablePoint2D<InnerComputationPoint2ai,InnerComputationVector2ai> toUnmodifiable()
Description copied from interface:Point2DReplies an unmodifiable copy of this point.- Specified by:
toUnmodifiablein interfacePoint2D<InnerComputationPoint2ai,InnerComputationVector2ai>- Returns:
- an unmodifiable copy.
-
toJson
public void toJson(JsonBuffer buffer)
Description copied from interface:JsonableObjectReplies the Json representation of this node.- Specified by:
toJsonin interfaceJsonableObject- Parameters:
buffer- the Json buffer.
-
-