Tanoda
Leap.Unity.Animation.HermitePoseSpline Struct Reference

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...

Inheritance diagram for Leap.Unity.Animation.HermitePoseSpline:
Leap.Unity.Animation.ISpline< Pose, Movement > Leap.Unity.Animation.ISpline< Vector3, Vector3 >

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)
 
- Public Member Functions inherited from Leap.Unity.Animation.ISpline< Pose, Movement >
XType ValueAt (float t)
 
dXType DerivativeAt (float t)
 
void ValueAndDerivativeAt (float t, out XType value, out dXType deltaValuePerT)
 
- Public Member Functions inherited from Leap.Unity.Animation.ISpline< Vector3, Vector3 >
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]
 
- Properties inherited from Leap.Unity.Animation.ISpline< Pose, Movement >
float minT [get]
 
float maxT [get]
 
- Properties inherited from Leap.Unity.Animation.ISpline< Vector3, Vector3 >
float minT [get]
 
float maxT [get]
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ HermitePoseSpline() [1/4]

Leap.Unity.Animation.HermitePoseSpline.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.

Definition at line 36 of file HermitePoseSpline.cs.

◆ HermitePoseSpline() [2/4]

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.

◆ HermitePoseSpline() [3/4]

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.

◆ HermitePoseSpline() [4/4]

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.

Member Function Documentation

◆ AngularVelocityAt()

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.

◆ DerivativeAt() [1/2]

Movement Leap.Unity.Animation.HermitePoseSpline.DerivativeAt ( float  t)

Definition at line 174 of file HermitePoseSpline.cs.

◆ DerivativeAt() [2/2]

Vector3 ISpline< Vector3, Vector3 >. Leap.Unity.Animation.HermitePoseSpline.DerivativeAt ( float  t)

Definition at line 194 of file HermitePoseSpline.cs.

◆ MovementAt()

Movement Leap.Unity.Animation.HermitePoseSpline.MovementAt ( float  t)

Definition at line 122 of file HermitePoseSpline.cs.

◆ PoseAndMovementAt()

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.

◆ PoseAt()

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.

◆ PositionAndVelAt()

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.

◆ PositionAt()

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.

◆ RotationAndAngVelAt()

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.

◆ RotationAt()

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.

◆ ValueAndDerivativeAt() [1/2]

void Leap.Unity.Animation.HermitePoseSpline.ValueAndDerivativeAt ( float  t,
out Pose  value,
out Movement  deltaValuePerSec 
)

Definition at line 178 of file HermitePoseSpline.cs.

◆ ValueAndDerivativeAt() [2/2]

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.

◆ ValueAt() [1/2]

Pose Leap.Unity.Animation.HermitePoseSpline.ValueAt ( float  t)

Definition at line 170 of file HermitePoseSpline.cs.

◆ ValueAt() [2/2]

Vector3 ISpline< Vector3, Vector3 >. Leap.Unity.Animation.HermitePoseSpline.ValueAt ( float  t)

Definition at line 190 of file HermitePoseSpline.cs.

◆ VelocityAt()

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.

Member Data Documentation

◆ pSpline

HermiteSpline3 Leap.Unity.Animation.HermitePoseSpline.pSpline

Definition at line 28 of file HermitePoseSpline.cs.

◆ qSpline

HermiteQuaternionSpline Leap.Unity.Animation.HermitePoseSpline.qSpline

Definition at line 29 of file HermitePoseSpline.cs.

Property Documentation

◆ maxT [1/2]

float Leap.Unity.Animation.HermitePoseSpline.maxT
get

Definition at line 168 of file HermitePoseSpline.cs.

◆ maxT [2/2]

float ISpline<Vector3, Vector3>. Leap.Unity.Animation.HermitePoseSpline.maxT
get

Definition at line 188 of file HermitePoseSpline.cs.

◆ minT [1/2]

float Leap.Unity.Animation.HermitePoseSpline.minT
get

Definition at line 166 of file HermitePoseSpline.cs.

◆ minT [2/2]

float ISpline<Vector3, Vector3>. Leap.Unity.Animation.HermitePoseSpline.minT
get

Definition at line 186 of file HermitePoseSpline.cs.


The documentation for this struct was generated from the following file: