Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

VectorUtils.EvalFull

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static Vector2 EvalFull(Unity.VectorGraphics.BezierSegment segment, float t, out Vector2 tangent);

Parameters

Parameter Description
segment The curve segment on which to evaluate the normal
t The parametric location on the curve
tangent The output tangent at parametric location "t"

Returns

Vector2 The position on the curve at parametric location "t"

Description

Evalutes both the position and tangent on a curve segment.

This is more efficient than calling "Eval" and "EvalTangent" successively.


Declaration

public static Vector2 EvalFull(Unity.VectorGraphics.BezierSegment segment, float t, out Vector2 tangent, out Vector2 normal);

Parameters

Parameter Description
segment The curve segment on which to evaluate the normal
t The parametric location on the curve
tangent The output tangent at parametric location "t"
normal The output normal at parametric location "t"

Returns

Vector2 The position on the curve at parametric location "t"

Description

Evalutes the position, tangent and normal on a curve segment.

This is more efficient than calling "Eval", "EvalTangent" and "EvalNormal" successively.