Package org.arakhne.afc.math.geometry.d1
Interface GeomFactory1D<V extends Vector1D<? super V,? super P,?>,P extends Point1D<? 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:
GeomFactory1afp<P,V,S,B>
- All Known Implementing Classes:
AbstractGeomFactory1D,GeomFactory1d,GeomFactory1dfx,ImmutableGeomFactory,InnerComputationGeomFactory
public interface GeomFactory1D<V extends Vector1D<? super V,? super P,?>,P extends Point1D<? super P,? super V,?>> extends GeomFactoryBase
Factory of geometrical primitives.- Since:
- 14.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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PconvertToPoint(Point1D<?,?,?> pt)Convert the given point if it is not of the right type.PconvertToPoint(Vector1D<?,?,?> pt)Convert the given vector if it is not of the right type.VconvertToVector(Point1D<?,?,?> pt)Convert the given point.VconvertToVector(Vector1D<?,?,?> vector)Convert the given vector.PnewPoint(Segment1D<?,?> segment)Create a point.PnewPoint(Segment1D<?,?> segment, double x, double y)Create a point.PnewPoint(Segment1D<?,?> segment, int x, int y)Create a point.VnewVector(Segment1D<?,?> segment)Create a vector.VnewVector(Segment1D<?,?> segment, double x, double y)Create a vector.VnewVector(Segment1D<?,?> segment, int x, int y)Create a vector.-
Methods inherited from interface org.arakhne.afc.math.geometry.GeomFactoryBase
getSplineApproximationRatio, setSplineApproximationRatio
-
-
-
-
Method Detail
-
convertToPoint
@Pure P convertToPoint(Point1D<?,?,?> pt)
Convert the given point if it is not of the right type.- Parameters:
pt- the point to convert.- Returns:
pif it is of typeP, or a copy ofp.
-
convertToPoint
@Pure P convertToPoint(Vector1D<?,?,?> pt)
Convert the given vector if it is not of the right type.- Parameters:
pt- the point to convert.- Returns:
- the point.
-
convertToVector
@Pure V convertToVector(Point1D<?,?,?> pt)
Convert the given point.- Parameters:
pt- the point to convert.- Returns:
- the vector.
-
convertToVector
@Pure V convertToVector(Vector1D<?,?,?> vector)
Convert the given vector.- Parameters:
vector- the vector to convert.- Returns:
- the vector.
-
newPoint
@Pure P newPoint(Segment1D<?,?> segment)
Create a point.- Parameters:
segment- the segment.- Returns:
- the point.
-
newPoint
@Pure P newPoint(Segment1D<?,?> segment, double x, double y)
Create a point.- Parameters:
segment- the segment.x- x coordinate of the point.y- y coordinate of the point.- Returns:
- the point.
-
newPoint
@Pure P newPoint(Segment1D<?,?> segment, int x, int y)
Create a point.- Parameters:
segment- the segment.x- x coordinate of the point.y- y coordinate of the point.- Returns:
- the point.
-
newVector
@Pure V newVector(Segment1D<?,?> segment)
Create a vector.- Parameters:
segment- the segment.- Returns:
- the vector.
-
newVector
@Pure V newVector(Segment1D<?,?> segment, double x, double y)
Create a vector.- Parameters:
segment- the segment.x- x coordinate of the vector.y- y coordinate of the vector.- Returns:
- the vector.
-
-