SegmentLength(BezierSegment, float)
Computes the length of a single curve segment.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static float SegmentLength(BezierSegment segment, float precision = 0.001)
Parameters
The curve segment on which to evaluate the length
The precision of the length computation
Returns
Type | Description |
|---|---|
| float | The length of the segment |