Class GeodeticCalculator.CircularPath

Enclosing class:
GeodeticCalculator

private final class GeodeticCalculator.CircularPath extends GeodeticCalculator.PathBuilder
Builds a circular region around the start point. The shape is created as a sequence of Bézier curves.
  • Field Details

    • mcosαi

      private final double mcosαi
      The initial (i) derivatives, saved for later restoration by reset().
    • msinαi

      private final double msinαi
      The initial (i) derivatives, saved for later restoration by reset().
  • 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 the Bezier.point array and the derivative (∂y/∂x) in the dx and dy fields.
      Overrides:
      evaluateAt in class GeodeticCalculator.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 enclosing GeodeticCalculator to the state that it has at PathBuilder instantiation time.
      Overrides:
      reset in class GeodeticCalculator.PathBuilder