2using System.Collections.Generic;
4using System.Runtime.CompilerServices;
21 public int numPoints { [MethodImpl(MethodImplOptions.InternalCall)]
get; }
29 INTERNAL_addPoint(ref value);
38 INTERNAL_removePoint(index);
48 INTERNAL_getPoint(index, out
Vector3 value);
59 INTERNAL_setPoint(index, ref value);
69 INTERNAL_getSplinePoint(t, out
Vector3 value);
80 INTERNAL_getSplineDirection(t, out
Vector3 value);
86 [MethodImpl(MethodImplOptions.InternalCall)]
87 private extern void INTERNAL_addPoint(ref
Vector3 value);
89 [MethodImpl(MethodImplOptions.InternalCall)]
90 private extern void INTERNAL_removePoint(
int index);
92 [MethodImpl(MethodImplOptions.InternalCall)]
93 private extern void INTERNAL_getPoint(
int index, out
Vector3 value);
95 [MethodImpl(MethodImplOptions.InternalCall)]
96 private extern void INTERNAL_setPoint(
int index, ref
Vector3 value);
98 [MethodImpl(MethodImplOptions.InternalCall)]
99 private extern void INTERNAL_getSplinePoint(
float t, out
Vector3 value);
101 [MethodImpl(MethodImplOptions.InternalCall)]
102 private extern void INTERNAL_getSplineDirection(
float t, out
Vector3 value);
int numPoints
Get number of points in the spline
Vector3 GetSplineDirection(float t)
Get direction on the spline at described position (0...1)
Vector3 GetPoint(int index)
Get point by index
Vector3 GetSplinePoint(float t)
Get interpolated point on the spline at described position (0...1)
void SetPoint(int index, Vector3 value)
Set point by index
void AddPoint(Vector3 value)
Add point to the spline
void RemovePoint(int index)
Remove point from the spline by index