EvalFull
Evalutes both the position and tangent on a curve segment.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
EvalFull(BezierSegment, float, Vector2)
Evalutes both the position and tangent on a curve segment.
public static Vector2 EvalFull(BezierSegment segment, float t, out Vector2 tangent)
Parameters
The curve segment on which to evaluate the normal
The parametric location on the curve
The output tangent at parametric location "t"
Returns
Type | Description |
|---|---|
| Vector2 | The position on the curve at parametric location "t" |
Remarks
This is more efficient than calling "Eval" and "EvalTangent" successively.
EvalFull(BezierSegment, float, Vector2, Vector2)
Evalutes the position, tangent and normal on a curve segment.
public static Vector2 EvalFull(BezierSegment segment, float t, out Vector2 tangent, out Vector2 normal)
Parameters
The curve segment on which to evaluate the normal
The parametric location on the curve
The output tangent at parametric location "t"
The output normal at parametric location "t"
Returns
Type | Description |
|---|---|
| Vector2 | The position on the curve at parametric location "t" |
Remarks
This is more efficient than calling "Eval", "EvalTangent" and "EvalNormal" successively.