Class Flattener3d.MaxAngle

java.lang.Object
org.djutils.draw.curve.Flattener3d.MaxAngle
All Implemented Interfaces:
Flattener<Flattener3d,Curve3d,PolyLine3d,Point3d,Direction3d>, Flattener3d
Enclosing interface:
Flattener3d

public static class Flattener3d.MaxAngle extends Object implements Flattener3d
Flattener that limits the angle difference between the Curve3d and the PolyLine3d.
  • Constructor Details

    • MaxAngle

      public MaxAngle(double maxAngle)
      Flattener that limits the angle difference between the Curve3d and the PolyLine3d.
      Parameters:
      maxAngle - maximum angle
      Throws:
      ArithmeticException - when maxAngle is NaN
      IllegalArgumentException - when maxAngle ≤ 0.0
  • Method Details

    • flatten

      public PolyLine3d flatten(Curve3d curve)
      Description copied from interface: Flattener3d
      Flatten a Curve3d into a PolyLine3d.
      Specified by:
      flatten in interface Flattener3d
      Parameters:
      curve - the curve
      Returns:
      flattened line