Class SplineUtility
Inheritance
SplineUtility
Syntax
public class SplineUtility
Methods
CalculateTangents(Vector3, Vector3, Vector3, Vector3, Single, out Vector3, out Vector3)
Declaration
public static void CalculateTangents(Vector3 point, Vector3 prevPoint, Vector3 nextPoint, Vector3 forward, float scale, out Vector3 rightTangent, out Vector3 leftTangent)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Vector3 |
prevPoint |
|
Vector3 |
nextPoint |
|
Vector3 |
forward |
|
Single |
scale |
|
Vector3 |
rightTangent |
|
Vector3 |
leftTangent |
|
NextIndex(Int32, Int32)
Declaration
public static int NextIndex(int index, int pointCount)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Int32 |
pointCount |
|
Returns
PreviousIndex(Int32, Int32)
Declaration
public static int PreviousIndex(int index, int pointCount)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Int32 |
pointCount |
|
Returns
SlopeAngle(Vector2, Vector2)
Declaration
public static float SlopeAngle(Vector2 start, Vector2 end)
Parameters
Type |
Name |
Description |
Vector2 |
start |
|
Vector2 |
end |
|
Returns