Tanoda
Leap.Unity.Animation.HermiteSpline3 Struct Reference

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

 HermiteSpline3 (Vector3 pos0, Vector3 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...
 
 HermiteSpline3 (Vector3 pos0, Vector3 pos1, Vector3 vel0, Vector3 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...
 
 HermiteSpline3 (Vector3 pos0, Vector3 pos1, Vector3 vel0, Vector3 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...
 
 HermiteSpline3 (float t0, float t1, Vector3 pos0, Vector3 pos1, Vector3 vel0, Vector3 vel1)
 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 to t0, but can extrapolate beyond t1. More...
 
Vector3 VelocityAt (float t)
 Gets the first derivative of position at time t. The time is clamped within the t0 - t1 range (thus velocity is unaffected by extrapolation). More...
 
void PositionAndVelAt (float t, out Vector3 position, out Vector3 velocity)
 Gets both the position and the first derivative of position at time ti. The time is clamped within the t0 - t1 range. If you wish to extrapolate, use PositionAt(t). More...
 

Public Attributes

float t0
 
float t1
 
Vector3 pos0
 
Vector3 pos1
 
Vector3 vel0
 
Vector3 vel1
 

Detailed Description

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

Constructor & Destructor Documentation

◆ HermiteSpline3() [1/4]

Leap.Unity.Animation.HermiteSpline3.HermiteSpline3 ( Vector3  pos0,
Vector3  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 HermiteSpline3.cs.

◆ HermiteSpline3() [2/4]

Leap.Unity.Animation.HermiteSpline3.HermiteSpline3 ( Vector3  pos0,
Vector3  pos1,
Vector3  vel0,
Vector3  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 HermiteSpline3.cs.

◆ HermiteSpline3() [3/4]

Leap.Unity.Animation.HermiteSpline3.HermiteSpline3 ( Vector3  pos0,
Vector3  pos1,
Vector3  vel0,
Vector3  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 HermiteSpline3.cs.

◆ HermiteSpline3() [4/4]

Leap.Unity.Animation.HermiteSpline3.HermiteSpline3 ( float  t0,
float  t1,
Vector3  pos0,
Vector3  pos1,
Vector3  vel0,
Vector3  vel1 
)

Constructs a spline by specifying the positions, velocities, and times of the endpoints.

Definition at line 81 of file HermiteSpline3.cs.

Member Function Documentation

◆ PositionAndVelAt()

void Leap.Unity.Animation.HermiteSpline3.PositionAndVelAt ( float  t,
out Vector3  position,
out Vector3  velocity 
)

Gets both the position and the first derivative of position at time ti. The time is clamped within the t0 - t1 range. If you wish to extrapolate, use PositionAt(t).

Definition at line 149 of file HermiteSpline3.cs.

◆ PositionAt()

Vector3 Leap.Unity.Animation.HermiteSpline3.PositionAt ( float  t)

Gets the position at time t along this spline.
The time is clamped to t0, but can extrapolate beyond t1.

Definition at line 97 of file HermiteSpline3.cs.

◆ VelocityAt()

Vector3 Leap.Unity.Animation.HermiteSpline3.VelocityAt ( float  t)

Gets the first derivative of position at time t. The time is clamped within the t0 - t1 range (thus velocity is unaffected by extrapolation).

Definition at line 120 of file HermiteSpline3.cs.

Member Data Documentation

◆ pos0

Vector3 Leap.Unity.Animation.HermiteSpline3.pos0

Definition at line 26 of file HermiteSpline3.cs.

◆ pos1

Vector3 Leap.Unity.Animation.HermiteSpline3.pos1

Definition at line 26 of file HermiteSpline3.cs.

◆ t0

float Leap.Unity.Animation.HermiteSpline3.t0

Definition at line 25 of file HermiteSpline3.cs.

◆ t1

float Leap.Unity.Animation.HermiteSpline3.t1

Definition at line 25 of file HermiteSpline3.cs.

◆ vel0

Vector3 Leap.Unity.Animation.HermiteSpline3.vel0

Definition at line 27 of file HermiteSpline3.cs.

◆ vel1

Vector3 Leap.Unity.Animation.HermiteSpline3.vel1

Definition at line 27 of file HermiteSpline3.cs.


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