Class SplineUtility
Inheritance
System.Object
SplineUtility
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.U2D
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 | |
| System.Single | scale | |
| Vector3 | rightTangent | |
| Vector3 | leftTangent |
NextIndex(Int32, Int32)
Declaration
public static int NextIndex(int index, int pointCount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Int32 | pointCount |
Returns
| Type | Description |
|---|---|
| System.Int32 |
PreviousIndex(Int32, Int32)
Declaration
public static int PreviousIndex(int index, int pointCount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Int32 | pointCount |
Returns
| Type | Description |
|---|---|
| System.Int32 |