Tanoda
|
Represents a spline for poses – positions and rotations – that travel from one position and rotation in space to another over a specified time frame. The two endpoints are specified, as well as the instantaneous velocity and angular velocity at those two endpoints. More...
Public Member Functions | |
HermitePoseSpline (Pose pose0, Pose pose1) | |
Constructs a spline by specifying the poses of the two endpoints. The velocity and angular velocity at each endpoint is zero, and the time range of the spline is 0 to 1. More... | |
HermitePoseSpline (Pose pose0, Pose pose1, Movement move0, Movement move1) | |
Constructs a spline by specifying the poses and movements of the two endpoints. The time range of the spline is 0 to 1. More... | |
HermitePoseSpline (Pose pose0, Pose pose1, Movement move0, Movement move1, float duration) | |
Constructs a spline by specifying the positions and velocities of the two endpoints. The time range of the spline is 0 to duration. More... | |
HermitePoseSpline (float t0, float t1, Pose pose0, Pose pose1, Movement move0, Movement move1) | |
Constructs a spline by specifying the positions, velocities, and times of the endpoints. More... | |
Vector3 | PositionAt (float t) |
Gets the position at time t along this spline. The time is clamped within the t0 - t1 range. More... | |
Quaternion | RotationAt (float t) |
Gets the rotation at time t along this spline. The time is clamped within the t0 - t1 range. More... | |
Pose | PoseAt (float t) |
Gets the pose at time t along this spline. The time is clamped within the t0 - t1 range. More... | |
Vector3 | VelocityAt (float t) |
Gets the first derivative of position at time t. The time is clamped within the t0 - t1 range. More... | |
Vector3 | AngularVelocityAt (float t) |
Gets the first derivative of rotation at time t. The time is clamped within the t0 - t1 range. Angular velocity is encoded as an angle-axis vector. More... | |
Movement | MovementAt (float t) |
void | PositionAndVelAt (float t, out Vector3 position, out Vector3 velocity) |
Gets both the position and the first derivative of position at time t. The time is clamped within the t0 - t1 range. More... | |
void | RotationAndAngVelAt (float t, out Quaternion rotation, out Vector3 angularVelocity) |
Gets both the rotation and the first derivative of rotation at time t. The time is clamped within the t0 - t1 range. Angular velocity is encoded as an angle-axis vector. More... | |
void | PoseAndMovementAt (float t, out Pose pose, out Movement movement) |
Gets both the rotation and the first derivative of rotation at time t. The time is clamped within the t0 - t1 range. Angular velocity is encoded as an angle-axis vector. More... | |
Pose | ValueAt (float t) |
Movement | DerivativeAt (float t) |
void | ValueAndDerivativeAt (float t, out Pose value, out Movement deltaValuePerSec) |
Vector3 ISpline< Vector3, Vector3 >. | ValueAt (float t) |
Vector3 ISpline< Vector3, Vector3 >. | DerivativeAt (float t) |
void ISpline< Vector3, Vector3 >. | ValueAndDerivativeAt (float t, out Vector3 value, out Vector3 deltaValuePerT) |
![]() | |
XType | ValueAt (float t) |
dXType | DerivativeAt (float t) |
void | ValueAndDerivativeAt (float t, out XType value, out dXType deltaValuePerT) |
![]() | |
XType | ValueAt (float t) |
dXType | DerivativeAt (float t) |
void | ValueAndDerivativeAt (float t, out XType value, out dXType deltaValuePerT) |
Public Attributes | |
HermiteSpline3 | pSpline |
HermiteQuaternionSpline | qSpline |
Properties | |
float | minT [get] |
float | maxT [get] |
float ISpline< Vector3, Vector3 >. | minT [get] |
float ISpline< Vector3, Vector3 >. | maxT [get] |
![]() | |
float | minT [get] |
float | maxT [get] |
![]() | |
float | minT [get] |
float | maxT [get] |
Represents a spline for poses – positions and rotations – that travel from one position and rotation in space to another over a specified time frame. The two endpoints are specified, as well as the instantaneous velocity and angular velocity at those two endpoints.
You may ask for the position, rotation, velocity, or angular velocity at any time along the spline's duration.
Definition at line 25 of file HermitePoseSpline.cs.
Constructs a spline by specifying the poses of the two endpoints. The velocity and angular velocity at each endpoint is zero, and the time range of the spline is 0 to 1.
Definition at line 36 of file HermitePoseSpline.cs.
Leap.Unity.Animation.HermitePoseSpline.HermitePoseSpline | ( | Pose | pose0, |
Pose | pose1, | ||
Movement | move0, | ||
Movement | move1 | ||
) |
Constructs a spline by specifying the poses and movements of the two endpoints. The time range of the spline is 0 to 1.
Definition at line 45 of file HermitePoseSpline.cs.
Leap.Unity.Animation.HermitePoseSpline.HermitePoseSpline | ( | Pose | pose0, |
Pose | pose1, | ||
Movement | move0, | ||
Movement | move1, | ||
float | duration | ||
) |
Constructs a spline by specifying the positions and velocities of the two endpoints. The time range of the spline is 0 to duration.
Definition at line 56 of file HermitePoseSpline.cs.
Leap.Unity.Animation.HermitePoseSpline.HermitePoseSpline | ( | float | t0, |
float | t1, | ||
Pose | pose0, | ||
Pose | pose1, | ||
Movement | move0, | ||
Movement | move1 | ||
) |
Constructs a spline by specifying the positions, velocities, and times of the endpoints.
Definition at line 71 of file HermitePoseSpline.cs.
Vector3 Leap.Unity.Animation.HermitePoseSpline.AngularVelocityAt | ( | float | t | ) |
Gets the first derivative of rotation at time t. The time is clamped within the t0 - t1 range. Angular velocity is encoded as an angle-axis vector.
Definition at line 118 of file HermitePoseSpline.cs.
Movement Leap.Unity.Animation.HermitePoseSpline.DerivativeAt | ( | float | t | ) |
Definition at line 174 of file HermitePoseSpline.cs.
Vector3 ISpline< Vector3, Vector3 >. Leap.Unity.Animation.HermitePoseSpline.DerivativeAt | ( | float | t | ) |
Definition at line 194 of file HermitePoseSpline.cs.
Movement Leap.Unity.Animation.HermitePoseSpline.MovementAt | ( | float | t | ) |
Definition at line 122 of file HermitePoseSpline.cs.
void Leap.Unity.Animation.HermitePoseSpline.PoseAndMovementAt | ( | float | t, |
out Pose | pose, | ||
out Movement | movement | ||
) |
Gets both the rotation and the first derivative of rotation at time t. The time is clamped within the t0 - t1 range. Angular velocity is encoded as an angle-axis vector.
Gets both the pose and position/rotation first derivative at time t. The time is clamped within the t0 - t1 range. Angular velocity is encoded as an angle-axis vector.
Definition at line 154 of file HermitePoseSpline.cs.
Pose Leap.Unity.Animation.HermitePoseSpline.PoseAt | ( | float | t | ) |
Gets the pose at time t along this spline. The time is clamped within the t0 - t1 range.
Definition at line 102 of file HermitePoseSpline.cs.
void Leap.Unity.Animation.HermitePoseSpline.PositionAndVelAt | ( | float | t, |
out Vector3 | position, | ||
out Vector3 | velocity | ||
) |
Gets both the position and the first derivative of position at time t. The time is clamped within the t0 - t1 range.
Definition at line 130 of file HermitePoseSpline.cs.
Vector3 Leap.Unity.Animation.HermitePoseSpline.PositionAt | ( | float | t | ) |
Gets the position at time t along this spline. The time is clamped within the t0 - t1 range.
Definition at line 86 of file HermitePoseSpline.cs.
void Leap.Unity.Animation.HermitePoseSpline.RotationAndAngVelAt | ( | float | t, |
out Quaternion | rotation, | ||
out Vector3 | angularVelocity | ||
) |
Gets both the rotation and the first derivative of rotation at time t. The time is clamped within the t0 - t1 range. Angular velocity is encoded as an angle-axis vector.
Definition at line 139 of file HermitePoseSpline.cs.
Quaternion Leap.Unity.Animation.HermitePoseSpline.RotationAt | ( | float | t | ) |
Gets the rotation at time t along this spline. The time is clamped within the t0 - t1 range.
Definition at line 94 of file HermitePoseSpline.cs.
void Leap.Unity.Animation.HermitePoseSpline.ValueAndDerivativeAt | ( | float | t, |
out Pose | value, | ||
out Movement | deltaValuePerSec | ||
) |
Definition at line 178 of file HermitePoseSpline.cs.
void ISpline< Vector3, Vector3 >. Leap.Unity.Animation.HermitePoseSpline.ValueAndDerivativeAt | ( | float | t, |
out Vector3 | value, | ||
out Vector3 | deltaValuePerT | ||
) |
Definition at line 198 of file HermitePoseSpline.cs.
Pose Leap.Unity.Animation.HermitePoseSpline.ValueAt | ( | float | t | ) |
Definition at line 170 of file HermitePoseSpline.cs.
Vector3 ISpline< Vector3, Vector3 >. Leap.Unity.Animation.HermitePoseSpline.ValueAt | ( | float | t | ) |
Definition at line 190 of file HermitePoseSpline.cs.
Vector3 Leap.Unity.Animation.HermitePoseSpline.VelocityAt | ( | float | t | ) |
Gets the first derivative of position at time t. The time is clamped within the t0 - t1 range.
Definition at line 110 of file HermitePoseSpline.cs.
HermiteSpline3 Leap.Unity.Animation.HermitePoseSpline.pSpline |
Definition at line 28 of file HermitePoseSpline.cs.
HermiteQuaternionSpline Leap.Unity.Animation.HermitePoseSpline.qSpline |
Definition at line 29 of file HermitePoseSpline.cs.
|
get |
Definition at line 168 of file HermitePoseSpline.cs.
|
get |
Definition at line 188 of file HermitePoseSpline.cs.
|
get |
Definition at line 166 of file HermitePoseSpline.cs.
|
get |
Definition at line 186 of file HermitePoseSpline.cs.