SegmentsLength(IList<BezierPathSegment>, bool, float)
Computes the combined length of a segment chain.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static float SegmentsLength(IList<BezierPathSegment> segments, bool closed, float precision = 0.001)
Parameters
The curve segments on which to evaluate the length
A boolean indicating if the length of the segment joining the first and last points should be computed
The precision of the length computation
Returns
Type | Description |
|---|---|
| float | The combined length of the segment chain |