Method EvalFull
EvalFull(BezierSegment, float, out Vector2)
Evalutes both the position and tangent on a curve segment.
Declaration
public static Vector2 EvalFull(BezierSegment segment, float t, out Vector2 tangent)
Parameters
Type | Name | Description |
---|---|---|
BezierSegment | segment | The curve segment on which to evaluate the normal |
float | t | The parametric location on the curve |
Vector2 | tangent | 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, out Vector2, out Vector2)
Evalutes the position, tangent and normal on a curve segment.
Declaration
public static Vector2 EvalFull(BezierSegment segment, float t, out Vector2 tangent, out Vector2 normal)
Parameters
Type | Name | Description |
---|---|---|
BezierSegment | segment | The curve segment on which to evaluate the normal |
float | t | The parametric location on the curve |
Vector2 | tangent | The output tangent at parametric location "t" |
Vector2 | normal | 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.