Class BezierUtility
Inheritance
BezierUtility
Syntax
public static class BezierUtility
Methods
BezierPoint(Vector3, Vector3, Vector3, Vector3, Single)
Declaration
public static Vector3 BezierPoint(Vector3 startPosition, Vector3 startTangent, Vector3 endTangent, Vector3 endPosition, float t)
Parameters
Type |
Name |
Description |
Vector3 |
startPosition |
|
Vector3 |
startTangent |
|
Vector3 |
endTangent |
|
Vector3 |
endPosition |
|
Single |
t |
|
Returns
ClosestPointOnCurve(Vector3, Vector3, Vector3, Vector3, Vector3, out Single)
Declaration
public static Vector3 ClosestPointOnCurve(Vector3 point, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent, out float t)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Vector3 |
startPosition |
|
Vector3 |
endPosition |
|
Vector3 |
startTangent |
|
Vector3 |
endTangent |
|
Single |
t |
|
Returns
ClosestPointOnCurveFast(Vector3, Vector3, Vector3, Vector3, Vector3, out Single)
Declaration
public static Vector3 ClosestPointOnCurveFast(Vector3 point, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent, out float t)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Vector3 |
startPosition |
|
Vector3 |
endPosition |
|
Vector3 |
startTangent |
|
Vector3 |
endTangent |
|
Single |
t |
|
Returns
SplitBezier(Single, Vector3, Vector3, Vector3, Vector3, out Vector3, out Vector3, out Vector3, out Vector3, out Vector3, out Vector3, out Vector3, out Vector3)
Declaration
public static void SplitBezier(float t, Vector3 startPosition, Vector3 endPosition, Vector3 startRightTangent, Vector3 endLeftTangent, out Vector3 leftStartPosition, out Vector3 leftEndPosition, out Vector3 leftStartTangent, out Vector3 leftEndTangent, out Vector3 rightStartPosition, out Vector3 rightEndPosition, out Vector3 rightStartTangent, out Vector3 rightEndTangent)
Parameters
Type |
Name |
Description |
Single |
t |
|
Vector3 |
startPosition |
|
Vector3 |
endPosition |
|
Vector3 |
startRightTangent |
|
Vector3 |
endLeftTangent |
|
Vector3 |
leftStartPosition |
|
Vector3 |
leftEndPosition |
|
Vector3 |
leftStartTangent |
|
Vector3 |
leftEndTangent |
|
Vector3 |
rightStartPosition |
|
Vector3 |
rightEndPosition |
|
Vector3 |
rightStartTangent |
|
Vector3 |
rightEndTangent |
|