Tanoda
|
Represents a spline that travels from one point in space to another over a specified time frame. The two endpoints are specified, as well as the instantaneous velocity at these two endpoints. More...
Public Member Functions | |
HermiteSpline2 (Vector2 pos0, Vector2 pos1) | |
Constructs a spline by specifying the positions of the two endpoints. The velocity at each endpoint is zero, and the time range of the spline is 0 to 1. More... | |
HermiteSpline2 (Vector2 pos0, Vector2 pos1, Vector2 vel0, Vector2 vel1) | |
Constructs a spline by specifying the positions and velocities of the two endpoints. The time range of the spline is 0 to 1. More... | |
HermiteSpline2 (Vector2 pos0, Vector2 pos1, Vector2 vel0, Vector2 vel1, float length) | |
Constructs a spline by specifying the positions and velocities of the two endpoints. The time range of the spline is 0 to length. More... | |
HermiteSpline2 (float t0, float t1, Vector2 pos0, Vector2 pos1, Vector2 vel0, Vector2 vel1) | |
Constructs a spline by specifying the positions, velocities, and times of the endpoints. More... | |
Vector2 | PositionAt (float t) |
Gets the position at time t along this spline. The time is clamped within the t0 - t1 range. More... | |
Vector2 | VelocityAt (float t) |
Gets the first derivative of position at time t. The time is clamped within the t0 - t1 range. More... | |
void | PositionAndVelAt (float t, out Vector2 position, out Vector2 velocity) |
Gets both the position and the first derivative of position at time ti. The time is clamped within the t0 - t1 range. More... | |
Public Attributes | |
float | t0 |
float | t1 |
Vector2 | pos0 |
Vector2 | pos1 |
Vector2 | vel0 |
Vector2 | vel1 |
Represents a spline that travels from one point in space to another over a specified time frame. The two endpoints are specified, as well as the instantaneous velocity at these two endpoints.
You may ask for the position or the velocity at any time during the splines duration.
Definition at line 24 of file HermiteSpline2.cs.
Leap.Unity.Animation.HermiteSpline2.HermiteSpline2 | ( | Vector2 | pos0, |
Vector2 | pos1 | ||
) |
Constructs a spline by specifying the positions of the two endpoints. The velocity at each endpoint is zero, and the time range of the spline is 0 to 1.
Definition at line 34 of file HermiteSpline2.cs.
Leap.Unity.Animation.HermiteSpline2.HermiteSpline2 | ( | Vector2 | pos0, |
Vector2 | pos1, | ||
Vector2 | vel0, | ||
Vector2 | vel1 | ||
) |
Constructs a spline by specifying the positions and velocities of the two endpoints. The time range of the spline is 0 to 1.
Definition at line 50 of file HermiteSpline2.cs.
Leap.Unity.Animation.HermiteSpline2.HermiteSpline2 | ( | Vector2 | pos0, |
Vector2 | pos1, | ||
Vector2 | vel0, | ||
Vector2 | vel1, | ||
float | length | ||
) |
Constructs a spline by specifying the positions and velocities of the two endpoints. The time range of the spline is 0 to length.
Definition at line 66 of file HermiteSpline2.cs.
Leap.Unity.Animation.HermiteSpline2.HermiteSpline2 | ( | float | t0, |
float | t1, | ||
Vector2 | pos0, | ||
Vector2 | pos1, | ||
Vector2 | vel0, | ||
Vector2 | vel1 | ||
) |
Constructs a spline by specifying the positions, velocities, and times of the endpoints.
Definition at line 81 of file HermiteSpline2.cs.
void Leap.Unity.Animation.HermiteSpline2.PositionAndVelAt | ( | float | t, |
out Vector2 | position, | ||
out Vector2 | velocity | ||
) |
Gets both the position and the first derivative of position at time ti. The time is clamped within the t0 - t1 range.
Definition at line 141 of file HermiteSpline2.cs.
Vector2 Leap.Unity.Animation.HermiteSpline2.PositionAt | ( | float | t | ) |
Gets the position at time t along this spline.
The time is clamped within the t0 - t1 range.
Definition at line 96 of file HermiteSpline2.cs.
Vector2 Leap.Unity.Animation.HermiteSpline2.VelocityAt | ( | float | t | ) |
Gets the first derivative of position at time t. The time is clamped within the t0 - t1 range.
Definition at line 113 of file HermiteSpline2.cs.
Vector2 Leap.Unity.Animation.HermiteSpline2.pos0 |
Definition at line 26 of file HermiteSpline2.cs.
Vector2 Leap.Unity.Animation.HermiteSpline2.pos1 |
Definition at line 26 of file HermiteSpline2.cs.
float Leap.Unity.Animation.HermiteSpline2.t0 |
Definition at line 25 of file HermiteSpline2.cs.
float Leap.Unity.Animation.HermiteSpline2.t1 |
Definition at line 25 of file HermiteSpline2.cs.
Vector2 Leap.Unity.Animation.HermiteSpline2.vel0 |
Definition at line 27 of file HermiteSpline2.cs.
Vector2 Leap.Unity.Animation.HermiteSpline2.vel1 |
Definition at line 27 of file HermiteSpline2.cs.