Package org.apache.sis.referencing
Class GeodeticCalculator.CircularPath
java.lang.Object
org.apache.sis.internal.referencing.j2d.Bezier
org.apache.sis.referencing.GeodeticCalculator.PathBuilder
org.apache.sis.referencing.GeodeticCalculator.CircularPath
- Enclosing class:
- GeodeticCalculator
Builds a circular region around the start point. The shape is created as a sequence of Bézier curves.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCircularPath
(double εx) Creates a builder for the given tolerance in degrees at equator. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
evaluateAt
(double t) Invoked for computing a new point on the circular path.(package private) void
reset()
Restores the enclosingGeodeticCalculator
to the state that it has atPathBuilder
instantiation time.Methods inherited from class org.apache.sis.referencing.GeodeticCalculator.PathBuilder
evaluateAtEndPoint
-
Field Details
-
Constructor Details
-
CircularPath
CircularPath(double εx) Creates a builder for the given tolerance in degrees at equator.
-
-
Method Details
-
evaluateAt
protected void evaluateAt(double t) throws org.opengis.referencing.operation.TransformException Invoked for computing a new point on the circular path. This method is invoked with a t value varying from 0 to 1 inclusive. The t value is multiplied by 2π for getting an angle. This method stores the coordinates in theBezier.point
array and the derivative (∂y/∂x) in the dx and dy fields.- Overrides:
evaluateAt
in classGeodeticCalculator.PathBuilder
- Parameters:
t
- angle fraction from 0 to 1 inclusive.- Throws:
org.opengis.referencing.operation.TransformException
- if the point coordinates cannot be computed.
-
reset
void reset()Restores the enclosingGeodeticCalculator
to the state that it has atPathBuilder
instantiation time.- Overrides:
reset
in classGeodeticCalculator.PathBuilder
-