Class Flattener2d.MaxDeviationAndAngle

java.lang.Object
org.djutils.draw.curve.Flattener2d.MaxDeviationAndAngle
All Implemented Interfaces:
Flattener<Flattener2d,Curve2d,PolyLine2d,Point2d,Double>, Flattener2d
Enclosing interface:
Flattener2d

public static class Flattener2d.MaxDeviationAndAngle extends Object implements Flattener2d
Flattener that limits the distance and angle difference between the Curve2d and the PolyLine2d.
  • Constructor Details

    • MaxDeviationAndAngle

      public MaxDeviationAndAngle(double maxDeviation, double maxAngle)
      Construct a flattener that limits the distance and angle difference between the curve2d and the PolyLine2d.
      Parameters:
      maxDeviation - maximum deviation, must be above 0.0
      maxAngle - maximum angle, must be above 0.0
      Throws:
      ArithmeticException - when maxDeviation, or maxAngle is NaN
      IllegalArgumentException - when maxDeviation ≤ 0.0, or maxAngle ≤ 0.0
  • Method Details