Class InnerComputationVector3afp
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.afp.InnerComputationVector3afp
-
- All Implemented Interfaces:
Serializable,Cloneable,Tuple3D<InnerComputationVector3afp>,Vector3D<InnerComputationVector3afp,InnerComputationPoint3afp>,JsonableObject
public class InnerComputationVector3afp extends Object implements Vector3D<InnerComputationVector3afp,InnerComputationPoint3afp>
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.arakhne.afc.math.geometry.d3.Vector3D
Vector3D.PowerResult<T extends Vector3D<? super T,?>>
-
-
Constructor Summary
Constructors Constructor Description InnerComputationVector3afp()Construct vector.InnerComputationVector3afp(double x, double y, double z)Construct vector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InnerComputationVector3afpclone()Clone this point.InnerComputationGeomFactory3afpgetGeomFactory()Replies the geometry factory associated to this point.doublegetX()Get the x coordinate.doublegetY()Get the y coordinate.doublegetZ()Get the z coordinate.intix()Get the x coordinate.intiy()Get the y coordinate.intiz()Get the z 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.voidsetZ(double z)Set the z coordinate.voidsetZ(int z)Set the z coordinate.voidtoJson(JsonBuffer buffer)Replies the Json representation of this node.StringtoString()InnerComputationVector3afptoUnitVector()Replies the unit vector of this vector.UnmodifiableVector3D<InnerComputationVector3afp,InnerComputationPoint3afp>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.d3.Tuple3D
absolute, absolute, add, add, addX, addX, addY, addY, addZ, addZ, 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, subZ, subZ
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Vector3D
add, add, angle, cross, cross, crossLeftHand, crossLeftHand, crossRightHand, crossRightHand, dot, getLength, getLengthSquared, isColinear, isUnitVector, normalize, normalize, operator_add, operator_divide, operator_doubleDotLessThan, operator_elvis, operator_equals, operator_greaterThanDoubleDot, operator_minus, operator_minus, operator_multiply, operator_multiply, operator_notEquals, operator_plus, operator_plus, operator_power, operator_power, operator_remove, operator_upTo, perp, power, scaleAdd, scaleAdd, scaleAdd, scaleAdd, setLength, signedAngle, sub, sub, sub, toColinearVector, turnVector
-
-
-
-
Method Detail
-
getGeomFactory
public InnerComputationGeomFactory3afp getGeomFactory()
Description copied from interface:Vector3DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfaceVector3D<InnerComputationVector3afp,InnerComputationPoint3afp>- 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 InnerComputationVector3afp clone()
Description copied from interface:Tuple3DClone this point.- Specified by:
clonein interfaceTuple3D<InnerComputationVector3afp>- Overrides:
clonein classObject- Returns:
- the clone.
-
getX
public double getX()
Description copied from interface:Tuple3DGet the x coordinate.- Specified by:
getXin interfaceTuple3D<InnerComputationVector3afp>- Returns:
- the x coordinate.
-
ix
public int ix()
Description copied from interface:Tuple3DGet the x coordinate.- Specified by:
ixin interfaceTuple3D<InnerComputationVector3afp>- Returns:
- the x coordinate.
-
setX
public void setX(int x)
Description copied from interface:Tuple3DSet the x coordinate.- Specified by:
setXin interfaceTuple3D<InnerComputationVector3afp>- Parameters:
x- value to x coordinate.
-
setX
public void setX(double x)
Description copied from interface:Tuple3DSet the x coordinate.- Specified by:
setXin interfaceTuple3D<InnerComputationVector3afp>- Parameters:
x- value to x coordinate.
-
getY
public double getY()
Description copied from interface:Tuple3DGet the y coordinate.- Specified by:
getYin interfaceTuple3D<InnerComputationVector3afp>- Returns:
- the y coordinate.
-
iy
public int iy()
Description copied from interface:Tuple3DGet the y coordinate.- Specified by:
iyin interfaceTuple3D<InnerComputationVector3afp>- Returns:
- the y coordinate.
-
setY
public void setY(int y)
Description copied from interface:Tuple3DSet the y coordinate.- Specified by:
setYin interfaceTuple3D<InnerComputationVector3afp>- Parameters:
y- value to y coordinate.
-
setY
public void setY(double y)
Description copied from interface:Tuple3DSet the y coordinate.- Specified by:
setYin interfaceTuple3D<InnerComputationVector3afp>- Parameters:
y- value to y coordinate.
-
getZ
public double getZ()
Description copied from interface:Tuple3DGet the z coordinate.- Specified by:
getZin interfaceTuple3D<InnerComputationVector3afp>- Returns:
- the z coordinate.
-
iz
public int iz()
Description copied from interface:Tuple3DGet the z coordinate.- Specified by:
izin interfaceTuple3D<InnerComputationVector3afp>- Returns:
- the z coordinate.
-
setZ
public void setZ(int z)
Description copied from interface:Tuple3DSet the z coordinate.- Specified by:
setZin interfaceTuple3D<InnerComputationVector3afp>- Parameters:
z- value to z coordinate.
-
setZ
public void setZ(double z)
Description copied from interface:Tuple3DSet the z coordinate.- Specified by:
setZin interfaceTuple3D<InnerComputationVector3afp>- Parameters:
z- value to z coordinate.
-
toUnmodifiable
public UnmodifiableVector3D<InnerComputationVector3afp,InnerComputationPoint3afp> toUnmodifiable()
Description copied from interface:Vector3DReplies an unmodifiable copy of this vector.- Specified by:
toUnmodifiablein interfaceVector3D<InnerComputationVector3afp,InnerComputationPoint3afp>- Returns:
- an unmodifiable copy.
-
toUnitVector
public InnerComputationVector3afp toUnitVector()
Description copied from interface:Vector3DReplies the unit vector of this vector.- Specified by:
toUnitVectorin interfaceVector3D<InnerComputationVector3afp,InnerComputationPoint3afp>- Returns:
- the unit vector of this vector.
-
-