init(startPoint:segments:)
Creates an envelope with a start point and segments.
Declaration
init?(startPoint: simd_double2, segments: [PHASEEnvelopeSegment])Parameters
- startPoint:
The start point of the envelope.
- segments:
An array of segments.
Discussion
For an empty segments argument, the resulting envelope contains one segment where the end point matches the start point. If the segments argument contains more than one segment, the resulting segments array sorts in ascending order on the x value.