Package org.arakhne.afc.math.geometry.d3
Interface GeomFactory3D<V extends Vector3D<? super V,? super P>,P extends Point3D<? super P,? super V>>
-
- Type Parameters:
V- the types of the vectors.P- is the type of the points.
- All Superinterfaces:
GeomFactoryBase
- All Known Subinterfaces:
GeomFactory3afp<E,P,V,B>,GeomFactory3ai<E,P,V,B>
- All Known Implementing Classes:
AbstractGeomFactory3D,GeomFactory3d,GeomFactory3dfx,GeomFactory3i,GeomFactory3ifx,ImmutableGeomFactory3D,InnerComputationGeomFactory,InnerComputationGeomFactory3afp
public interface GeomFactory3D<V extends Vector3D<? super V,? super P>,P extends Point3D<? super P,? super V>> extends GeomFactoryBase
Factory of geometrical primitives.- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Thomas PIOTROWSKI, Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PconvertToPoint(Point3D<?,?> point)Convert the given point if it is not of the right type.PconvertToPoint(Vector3D<?,?> vector)Convert the given vector.VconvertToVector(Point3D<?,?> point)Convert the given point.VconvertToVector(Vector3D<?,?> vector)Convert the given vector.PnewPoint()Create a point.PnewPoint(double x, double y, double z)Create a point.PnewPoint(int x, int y, int z)Create a point.QuaternionnewQuaternion(double attitude, double bank, double heading)Creates a Quaternion.QuaternionnewQuaternion(Vector3D<?,?> axis, double angle)Creates a Quaternion.VnewVector()Create a vector.VnewVector(double x, double y, double z)Create a vector.VnewVector(int x, int y, int z)Create a vector.-
Methods inherited from interface org.arakhne.afc.math.geometry.GeomFactoryBase
getSplineApproximationRatio, setSplineApproximationRatio
-
-
-
-
Method Detail
-
convertToPoint
@Pure P convertToPoint(Point3D<?,?> point)
Convert the given point if it is not of the right type.- Parameters:
point- the point to convert.- Returns:
pif it is of typeP, or a copy ofp.
-
convertToPoint
@Pure P convertToPoint(Vector3D<?,?> vector)
Convert the given vector.- Parameters:
vector- the vector to convert.- Returns:
- the point.
-
convertToVector
@Pure V convertToVector(Point3D<?,?> point)
Convert the given point.- Parameters:
point- the point to convert.- Returns:
- the vector.
-
convertToVector
@Pure V convertToVector(Vector3D<?,?> vector)
Convert the given vector.- Parameters:
vector- the vector to convert.- Returns:
- the vector.
-
newPoint
@Pure P newPoint()
Create a point.- Returns:
- the point.
-
newPoint
@Pure P newPoint(double x, double y, double z)
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
@Pure P newPoint(int x, int y, int z)
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
@Pure V newVector()
Create a vector.- Returns:
- the vector.
-
newVector
@Pure V newVector(double x, double y, double z)
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
@Pure V newVector(int x, int y, int z)
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
@Pure Quaternion newQuaternion(Vector3D<?,?> axis, double angle)
Creates a Quaternion.- Parameters:
axis- the axis of the quaternion.angle- the angle of the quaternion.- Returns:
- the quaternion.
-
newQuaternion
@Pure Quaternion newQuaternion(double attitude, double bank, double heading)
Creates a Quaternion.- Parameters:
attitude- the attitude of the quaternionbank- the bank of the quaternionheading- the heading of the quaternion- Returns:
- the quaternion
-
-