Package micycle.pgs

Interface PGS_SegmentSet.SegmentLengthFn

Enclosing class:
PGS_SegmentSet
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PGS_SegmentSet.SegmentLengthFn
Function that supplies the perpendicular segment length at each sampled position along a shape component (optionally varying by location, phase, or normal angle).
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    length(double x, double y, double posFrac, double angleRad)
     
  • Method Details

    • length

      double length(double x, double y, double posFrac, double angleRad)
      Parameters:
      x - sampled boundary point x
      y - sampled boundary point y
      posFrac - fractional position along the current component in [0,1) (includes startOffset phase)
      angleRad - angle of the (outward) unit normal in radians at the sample. (Tangent angle is angleRad - PI/2).
      Returns:
      desired segment length L. If <= 0, the segment is skipped.