Class InnerComputationGeomFactory3afp
- java.lang.Object
-
- org.arakhne.afc.math.geometry.AbstractGeomFactoryBase
-
- org.arakhne.afc.math.geometry.d3.AbstractGeomFactory3D<InnerComputationVector3afp,InnerComputationPoint3afp>
-
- org.arakhne.afc.math.geometry.d3.afp.InnerComputationGeomFactory3afp
-
- All Implemented Interfaces:
GeomFactory3D<InnerComputationVector3afp,InnerComputationPoint3afp>
,GeomFactoryBase
public final class InnerComputationGeomFactory3afp extends AbstractGeomFactory3D<InnerComputationVector3afp,InnerComputationPoint3afp>
Factory of immutable geometrical primitives.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Field Summary
Fields Modifier and Type Field Description static InnerComputationGeomFactory3afp
SINGLETON
Singleton of the factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InnerComputationPoint3afp
convertToPoint(Point3D<?,?> pt)
Convert the given point if it is not of the right type.InnerComputationPoint3afp
convertToPoint(Vector3D<?,?> v)
Convert the given vector.InnerComputationVector3afp
convertToVector(Point3D<?,?> pt)
Convert the given point.InnerComputationVector3afp
convertToVector(Vector3D<?,?> vector)
Convert the given vector.InnerComputationPoint3afp
newPoint()
Create a point.InnerComputationPoint3afp
newPoint(double x, double y, double z)
Create a point.InnerComputationPoint3afp
newPoint(int x, int y, int z)
Create a point.Quaternion
newQuaternion(double attitude, double bank, double heading)
Creates a Quaternion.Quaternion
newQuaternion(Vector3D<?,?> axis, double angle)
Creates a Quaternion.InnerComputationVector3afp
newVector()
Create a vector.InnerComputationVector3afp
newVector(double x, double y, double z)
Create a vector.InnerComputationVector3afp
newVector(int x, int y, int z)
Create a vector.-
Methods inherited from class org.arakhne.afc.math.geometry.AbstractGeomFactoryBase
getGlobalSplineApproximationRatio, getSplineApproximationRatio, setGlobalSplineApproximationRatio, setSplineApproximationRatio
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.geometry.GeomFactoryBase
getSplineApproximationRatio, setSplineApproximationRatio
-
-
-
-
Field Detail
-
SINGLETON
public static final InnerComputationGeomFactory3afp SINGLETON
Singleton of the factory.
-
-
Method Detail
-
convertToPoint
public InnerComputationPoint3afp convertToPoint(Point3D<?,?> pt)
Description copied from interface:GeomFactory3D
Convert the given point if it is not of the right type.- Parameters:
pt
- the point to convert.- Returns:
p
if it is of typeP
, or a copy ofp
.
-
convertToPoint
public InnerComputationPoint3afp convertToPoint(Vector3D<?,?> v)
Description copied from interface:GeomFactory3D
Convert the given vector.- Parameters:
v
- the vector to convert.- Returns:
- the point.
-
convertToVector
public InnerComputationVector3afp convertToVector(Point3D<?,?> pt)
Description copied from interface:GeomFactory3D
Convert the given point.- Parameters:
pt
- the point to convert.- Returns:
- the vector.
-
convertToVector
public InnerComputationVector3afp convertToVector(Vector3D<?,?> vector)
Description copied from interface:GeomFactory3D
Convert the given vector.- Parameters:
vector
- the vector to convert.- Returns:
- the vector.
-
newPoint
public InnerComputationPoint3afp newPoint()
Description copied from interface:GeomFactory3D
Create a point.- Returns:
- the point.
-
newPoint
public InnerComputationPoint3afp newPoint(double x, double y, double z)
Description copied from interface:GeomFactory3D
Create a point.- Parameters:
x
- x coordinate of the point.y
- y coordinate of the point.z
- z coordinate of the point.- Returns:
- the point.
-
newPoint
public InnerComputationPoint3afp newPoint(int x, int y, int z)
Description copied from interface:GeomFactory3D
Create a point.- Parameters:
x
- x coordinate of the point.y
- y coordinate of the point.z
- z coordinate of the point.- Returns:
- the point.
-
newVector
public InnerComputationVector3afp newVector()
Description copied from interface:GeomFactory3D
Create a vector.- Returns:
- the vector.
-
newVector
public InnerComputationVector3afp newVector(double x, double y, double z)
Description copied from interface:GeomFactory3D
Create a vector.- Parameters:
x
- x coordinate of the vector.y
- y coordinate of the vector.z
- z coordinate of the vector.- Returns:
- the vector.
-
newVector
public InnerComputationVector3afp newVector(int x, int y, int z)
Description copied from interface:GeomFactory3D
Create a vector.- Parameters:
x
- x coordinate of the vector.y
- y coordinate of the vector.z
- z coordinate of the vector.- Returns:
- the vector.
-
newQuaternion
public Quaternion newQuaternion(Vector3D<?,?> axis, double angle)
Description copied from interface:GeomFactory3D
Creates a Quaternion.- Parameters:
axis
- the axis of the quaternion.angle
- the angle of the quaternion.- Returns:
- the quaternion.
-
newQuaternion
public Quaternion newQuaternion(double attitude, double bank, double heading)
Description copied from interface:GeomFactory3D
Creates a Quaternion.- Parameters:
attitude
- the attitude of the quaternionbank
- the bank of the quaternionheading
- the heading of the quaternion- Returns:
- the quaternion
-
-