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.
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 TypeMethodDescriptiondoublelength(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 xy- sampled boundary point yposFrac- fractional position along the current component in [0,1) (includesstartOffsetphase)angleRad- angle of the (outward) unit normal in radians at the sample. (Tangent angle isangleRad - PI/2).- Returns:
- desired segment length L. If
<= 0, the segment is skipped.
-