97 float i = Mathf.Clamp01((t -
t0) / (
t1 -
t0));
106 return h00 + h10 + h01 + h11;
115 float C1 = 1.0f / C00;
120 i = Mathf.Clamp01((t -
t0) * C1);
126 i3_ = i2_ * i + i_ * i2;
134 return h00_ + h01_ + h10_ + h11_;
143 float C1 = 1.0f / C00;
148 i = Mathf.Clamp01((t -
t0) * C1);
155 i3_ = i2_ * i + i_ * i2;
170 position = h00 + h01 + h10 + h11;
171 velocity = h00_ + h01_ + h10_ + h11_;
Represents a spline that travels from one point in space to another over a specified time frame....
__CHS__(float t0, float t1, __CHS_T__ pos0, __CHS_T__ pos1, __CHS_T__ vel0, __CHS_T__ vel1)
Constructs a spline by specifying the positions, velocities, and times of the endpoints.
__CHS__(__CHS_T__ pos0, __CHS_T__ pos1)
Constructs a spline by specifying the positions of the two endpoints. The velocity at each endpoint i...
__CHS_T__ VelocityAt(float t)
Gets the first derivative of position at time t. The time is clamped within the t0 - t1 range.
__CHS_T__ PositionAt(float t)
Gets the position at time t along this spline. The time is clamped within the t0 - t1 range.
__CHS__(__CHS_T__ pos0, __CHS_T__ pos1, __CHS_T__ vel0, __CHS_T__ vel1, float length)
Constructs a spline by specifying the positions and velocities of the two endpoints....
void PositionAndVelAt(float t, out __CHS_T__ position, out __CHS_T__ velocity)
Gets both the position and the first derivative of position at time ti. The time is clamped within th...
__CHS__(__CHS_T__ pos0, __CHS_T__ pos1, __CHS_T__ vel0, __CHS_T__ vel1)
Constructs a spline by specifying the positions and velocities of the two endpoints....