Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EvalFull

Evalutes both the position and tangent on a curve segment.
Read time 1 minuteLast updated 7 days ago

Definition

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

tangent

The output tangent at parametric location "t"

Returns

Type

Description

Vector2The 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

tangent

The output tangent at parametric location "t"

normal

The output normal at parametric location "t"

Returns

Type

Description

Vector2The position on the curve at parametric location "t"

Remarks

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