Class InnerComputationGeomFactory
- java.lang.Object
-
- org.arakhne.afc.math.geometry.AbstractGeomFactoryBase
-
- org.arakhne.afc.math.geometry.d2.AbstractGeomFactory2D<InnerComputationVector2afp,InnerComputationPoint2afp>
-
- org.arakhne.afc.math.geometry.d2.afp.InnerComputationGeomFactory
-
- All Implemented Interfaces:
GeomFactory2D<InnerComputationVector2afp,InnerComputationPoint2afp>
,GeomFactoryBase
public final class InnerComputationGeomFactory extends AbstractGeomFactory2D<InnerComputationVector2afp,InnerComputationPoint2afp>
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 InnerComputationGeomFactory
SINGLETON
Singleton of the factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InnerComputationPoint2afp
convertToPoint(Point2D<?,?> pt)
Convert the given point if it is not of the right type.InnerComputationPoint2afp
convertToPoint(Vector2D<?,?> v)
Convert the given vector.InnerComputationVector2afp
convertToVector(Point2D<?,?> pt)
Convert the given point.InnerComputationVector2afp
convertToVector(Vector2D<?,?> v)
Convert the given vector.InnerComputationPoint2afp
newPoint()
Create a point.InnerComputationPoint2afp
newPoint(double x, double y)
Create a point.InnerComputationPoint2afp
newPoint(int x, int y)
Create a point.InnerComputationVector2afp
newVector()
Create a vector.InnerComputationVector2afp
newVector(double x, double y)
Create a vector.InnerComputationVector2afp
newVector(int x, int y)
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 InnerComputationGeomFactory SINGLETON
Singleton of the factory.
-
-
Method Detail
-
convertToPoint
public InnerComputationPoint2afp convertToPoint(Point2D<?,?> pt)
Description copied from interface:GeomFactory2D
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 InnerComputationPoint2afp convertToPoint(Vector2D<?,?> v)
Description copied from interface:GeomFactory2D
Convert the given vector.- Parameters:
v
- the vector to convert.- Returns:
- the point.
-
convertToVector
public InnerComputationVector2afp convertToVector(Point2D<?,?> pt)
Description copied from interface:GeomFactory2D
Convert the given point.- Parameters:
pt
- the point to convert.- Returns:
- the vector.
-
convertToVector
public InnerComputationVector2afp convertToVector(Vector2D<?,?> v)
Description copied from interface:GeomFactory2D
Convert the given vector.- Parameters:
v
- the vector to convert.- Returns:
- the vector.
-
newPoint
public InnerComputationPoint2afp newPoint()
Description copied from interface:GeomFactory2D
Create a point.- Returns:
- the point.
-
newPoint
public InnerComputationPoint2afp newPoint(double x, double y)
Description copied from interface:GeomFactory2D
Create a point.- Parameters:
x
- x coordinate of the point.y
- y coordinate of the point.- Returns:
- the point.
-
newPoint
public InnerComputationPoint2afp newPoint(int x, int y)
Description copied from interface:GeomFactory2D
Create a point.- Parameters:
x
- x coordinate of the point.y
- y coordinate of the point.- Returns:
- the point.
-
newVector
public InnerComputationVector2afp newVector()
Description copied from interface:GeomFactory2D
Create a vector.- Returns:
- the vector.
-
newVector
public InnerComputationVector2afp newVector(double x, double y)
Description copied from interface:GeomFactory2D
Create a vector.- Parameters:
x
- x coordinate of the vector.y
- y coordinate of the vector.- Returns:
- the vector.
-
newVector
public InnerComputationVector2afp newVector(int x, int y)
Description copied from interface:GeomFactory2D
Create a vector.- Parameters:
x
- x coordinate of the vector.y
- y coordinate of the vector.- Returns:
- the vector.
-
-