length(_:ofSegment:ofPath:at:)
Provides the length of one segment of the entire path.
Declaration
func length(_ length: UnsafeMutablePointer<Double>!, ofSegment segmentIndex: Int, ofPath pathID: FxPathID!, at time: CMTime) throwsParameters
- length:
Upon return, contains the length (in pixels) of the desired segment.
- segmentIndex:
Which segment of the path you wish to evaluate the length of.
- pathID:
The ID of the path whose segment you wish to evaluate.
- time:
The time at which to evaluate the length of a segment of a path.
See Also
Getting Path Information
numberOfPaths(at:)pathID(_:for:)name(_:ofPath:)isPath(_:open:at:)isPath(_:inverted:at:)style(_:ofPath:)length(_:ofPath:at:)number(ofVertices:inPath:at:)vertex(_:at:ofPath:at:)point(_:atPercentageOfDistance:alongPath:at:)point(_:atPercentageOfParameter:alongPath:at:)blendMode(_:ofPath:)pathGeometryInfo(_:forPath:at:)