Class Flattener2d.NumSegments

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

public static class Flattener2d.NumSegments extends Object implements Flattener2d
Flattener that approximates the Curve2d with a specified number of segments.
  • Constructor Details

    • NumSegments

      public NumSegments(int numSegments)
      Construct a flattener that approximates the Curve2d with a specified number of segments.
      Parameters:
      numSegments - number of segments to use in the construction of the PolyLine2d
      Throws:
      IllegalArgumentException - when numSegments < 1
  • Method Details