Class InnerComputationVector1afp
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d1.afp.InnerComputationVector1afp
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Vector1D<?,?,?>>,Vector1D<InnerComputationVector1afp,InnerComputationPoint1afp,Segment1D<?,?>>,Tuple2D<InnerComputationVector1afp>,JsonableObject
public class InnerComputationVector1afp extends Object implements Vector1D<InnerComputationVector1afp,InnerComputationPoint1afp,Segment1D<?,?>>
A vector 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 InnerComputationVector1afp(Segment1D<?,?> segment)Construct vector.InnerComputationVector1afp(Segment1D<?,?> segment, double x, double y)Construct vector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InnerComputationVector1afpclone()Clone this point.InnerComputationGeomFactorygetGeomFactory()Replies the geometry factory associated to this point.Segment1D<?,?>getSegment()Replies the segment.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()UnmodifiableVector1D<InnerComputationVector1afp,InnerComputationPoint1afp,Segment1D<?,?>>toUnmodifiable()Replies an unmodifiable copy of this vector.-
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.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, hashCode, interpolate, interpolate, negate, negate, scale, scale, scale, scale, set, set, set, set, set, sub, sub, subX, subX, subY, subY
-
Methods inherited from interface org.arakhne.afc.math.geometry.d1.Vector1D
$div, $minus, $minus, $minus, $minus, $plus, $plus, $plus, $times, add, add, compareTo, equals, equals, getLength, getLengthSquared, isUnitVector, normalize, normalize, operator_add, operator_divide, operator_elvis, operator_equals, operator_minus, operator_minus, operator_minus, operator_minus, operator_multiply, operator_notEquals, operator_plus, operator_plus, operator_plus, operator_remove, scaleAdd, scaleAdd, scaleAdd, scaleAdd, setLength, sub, sub, sub, toUnitVector
-
-
-
-
Constructor Detail
-
InnerComputationVector1afp
public InnerComputationVector1afp(Segment1D<?,?> segment)
Construct vector.- Parameters:
segment- the segment.
-
InnerComputationVector1afp
public InnerComputationVector1afp(Segment1D<?,?> segment, double x, double y)
Construct vector.- Parameters:
segment- the segment.x- x coordinatey- y coordinate
-
-
Method Detail
-
getSegment
public Segment1D<?,?> getSegment()
Description copied from interface:Vector1DReplies the segment.- Specified by:
getSegmentin interfaceVector1D<InnerComputationVector1afp,InnerComputationPoint1afp,Segment1D<?,?>>- Returns:
- the segment or
nullif the weak reference has lost the segment.
-
getGeomFactory
public InnerComputationGeomFactory getGeomFactory()
Description copied from interface:Vector1DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfaceVector1D<InnerComputationVector1afp,InnerComputationPoint1afp,Segment1D<?,?>>- Returns:
- the factory.
-
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.
-
clone
public InnerComputationVector1afp clone()
Description copied from interface:Tuple2DClone this point.- Specified by:
clonein interfaceTuple2D<InnerComputationVector1afp>- Overrides:
clonein classObject- Returns:
- the clone.
-
getX
public double getX()
Description copied from interface:Tuple2DGet the x coordinate.- Specified by:
getXin interfaceTuple2D<InnerComputationVector1afp>- Returns:
- the x coordinate.
-
ix
public int ix()
Description copied from interface:Tuple2DGet the x coordinate.- Specified by:
ixin interfaceTuple2D<InnerComputationVector1afp>- Returns:
- the x coordinate.
-
setX
public void setX(int x)
Description copied from interface:Tuple2DSet the x coordinate.- Specified by:
setXin interfaceTuple2D<InnerComputationVector1afp>- Parameters:
x- value to x coordinate.
-
setX
public void setX(double x)
Description copied from interface:Tuple2DSet the x coordinate.- Specified by:
setXin interfaceTuple2D<InnerComputationVector1afp>- Parameters:
x- value to x coordinate.
-
getY
public double getY()
Description copied from interface:Tuple2DGet the y coordinate.- Specified by:
getYin interfaceTuple2D<InnerComputationVector1afp>- Returns:
- the y coordinate.
-
iy
public int iy()
Description copied from interface:Tuple2DGet the y coordinate.- Specified by:
iyin interfaceTuple2D<InnerComputationVector1afp>- Returns:
- the y coordinate.
-
setY
public void setY(int y)
Description copied from interface:Tuple2DSet the y coordinate.- Specified by:
setYin interfaceTuple2D<InnerComputationVector1afp>- Parameters:
y- value to y coordinate.
-
setY
public void setY(double y)
Description copied from interface:Tuple2DSet the y coordinate.- Specified by:
setYin interfaceTuple2D<InnerComputationVector1afp>- Parameters:
y- value to y coordinate.
-
toUnmodifiable
public UnmodifiableVector1D<InnerComputationVector1afp,InnerComputationPoint1afp,Segment1D<?,?>> toUnmodifiable()
Description copied from interface:Vector1DReplies an unmodifiable copy of this vector.- Specified by:
toUnmodifiablein interfaceVector1D<InnerComputationVector1afp,InnerComputationPoint1afp,Segment1D<?,?>>- Returns:
- an unmodifiable copy.
-
-