EvalFull
Evalutes both the position and tangent on a curve segment.
阅读时间1 分钟最后更新于 1 个月前
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.