Class InnerComputationVector3ai
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.ai.InnerComputationVector3ai
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Tuple3D<InnerComputationVector3ai>
,Vector3D<InnerComputationVector3ai,InnerComputationPoint3ai>
,JsonableObject
public class InnerComputationVector3ai extends Object implements Vector3D<InnerComputationVector3ai,InnerComputationPoint3ai>
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 InnerComputationVector3ai()
Construct vector.InnerComputationVector3ai(int x, int y, int z)
Construct vector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InnerComputationVector3ai
clone()
Clone this point.GeomFactory3D<InnerComputationVector3ai,InnerComputationPoint3ai>
getGeomFactory()
Replies the geometry factory associated to this point.double
getX()
Get the x coordinate.double
getY()
Get the y coordinate.double
getZ()
Get the z coordinate.int
ix()
Get the x coordinate.int
iy()
Get the y coordinate.int
iz()
Get the z coordinate.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
setZ(double z)
Set the z coordinate.void
setZ(int z)
Set the z coordinate.void
toJson(JsonBuffer buffer)
Replies the Json representation of this node.String
toString()
InnerComputationVector3ai
toUnitVector()
Replies the unit vector of this vector.UnmodifiableVector3D<InnerComputationVector3ai,InnerComputationPoint3ai>
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
-
-
-
-
Constructor Detail
-
InnerComputationVector3ai
public InnerComputationVector3ai()
Construct vector.
-
InnerComputationVector3ai
public InnerComputationVector3ai(int x, int y, int z)
Construct vector.- Parameters:
x
- x coordinate of the vector.y
- y coordinate of the vector.z
- z coordinate of the vector.
-
-
Method Detail
-
clone
public InnerComputationVector3ai clone()
Description copied from interface:Tuple3D
Clone this point.- Specified by:
clone
in interfaceTuple3D<InnerComputationVector3ai>
- Overrides:
clone
in classObject
- Returns:
- the clone.
-
getX
public double getX()
Description copied from interface:Tuple3D
Get the x coordinate.- Specified by:
getX
in interfaceTuple3D<InnerComputationVector3ai>
- Returns:
- the x coordinate.
-
ix
public int ix()
Description copied from interface:Tuple3D
Get the x coordinate.- Specified by:
ix
in interfaceTuple3D<InnerComputationVector3ai>
- Returns:
- the x coordinate.
-
setX
public void setX(int x)
Description copied from interface:Tuple3D
Set the x coordinate.- Specified by:
setX
in interfaceTuple3D<InnerComputationVector3ai>
- Parameters:
x
- value to x coordinate.
-
setX
public void setX(double x)
Description copied from interface:Tuple3D
Set the x coordinate.- Specified by:
setX
in interfaceTuple3D<InnerComputationVector3ai>
- Parameters:
x
- value to x coordinate.
-
getY
public double getY()
Description copied from interface:Tuple3D
Get the y coordinate.- Specified by:
getY
in interfaceTuple3D<InnerComputationVector3ai>
- Returns:
- the y coordinate.
-
iy
public int iy()
Description copied from interface:Tuple3D
Get the y coordinate.- Specified by:
iy
in interfaceTuple3D<InnerComputationVector3ai>
- Returns:
- the y coordinate.
-
setY
public void setY(int y)
Description copied from interface:Tuple3D
Set the y coordinate.- Specified by:
setY
in interfaceTuple3D<InnerComputationVector3ai>
- Parameters:
y
- value to y coordinate.
-
setY
public void setY(double y)
Description copied from interface:Tuple3D
Set the y coordinate.- Specified by:
setY
in interfaceTuple3D<InnerComputationVector3ai>
- Parameters:
y
- value to y coordinate.
-
getZ
public double getZ()
Description copied from interface:Tuple3D
Get the z coordinate.- Specified by:
getZ
in interfaceTuple3D<InnerComputationVector3ai>
- Returns:
- the z coordinate.
-
iz
public int iz()
Description copied from interface:Tuple3D
Get the z coordinate.- Specified by:
iz
in interfaceTuple3D<InnerComputationVector3ai>
- Returns:
- the z coordinate.
-
setZ
public void setZ(int z)
Description copied from interface:Tuple3D
Set the z coordinate.- Specified by:
setZ
in interfaceTuple3D<InnerComputationVector3ai>
- Parameters:
z
- value to z coordinate.
-
setZ
public void setZ(double z)
Description copied from interface:Tuple3D
Set the z coordinate.- Specified by:
setZ
in interfaceTuple3D<InnerComputationVector3ai>
- Parameters:
z
- value to z coordinate.
-
getGeomFactory
public GeomFactory3D<InnerComputationVector3ai,InnerComputationPoint3ai> getGeomFactory()
Description copied from interface:Vector3D
Replies the geometry factory associated to this point.- Specified by:
getGeomFactory
in interfaceVector3D<InnerComputationVector3ai,InnerComputationPoint3ai>
- Returns:
- the factory.
-
toUnitVector
public InnerComputationVector3ai toUnitVector()
Description copied from interface:Vector3D
Replies the unit vector of this vector.- Specified by:
toUnitVector
in interfaceVector3D<InnerComputationVector3ai,InnerComputationPoint3ai>
- Returns:
- the unit vector of this vector.
-
toUnmodifiable
public UnmodifiableVector3D<InnerComputationVector3ai,InnerComputationPoint3ai> toUnmodifiable()
Description copied from interface:Vector3D
Replies an unmodifiable copy of this vector.- Specified by:
toUnmodifiable
in interfaceVector3D<InnerComputationVector3ai,InnerComputationPoint3ai>
- Returns:
- an unmodifiable copy.
-
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.
-
-