Tanoda
Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType > Class Template Referenceabstract
Inheritance diagram for Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >:
Leap.Unity.Animation.IInterpolator Leap.Unity.IPoolable

Public Member Functions

InterpolatorBase< ValueType, ObjType > Init (ValueType a, ValueType b, ObjType target)
 
abstract void Interpolate (float percent)
 Called to trigger the interpolation of this interpolator. Use this callback to do whatever work your interpolator needs to do. More...
 
void OnSpawn ()
 
void OnRecycle ()
 
abstract void Dispose ()
 
void Interpolate (float percent)
 Called to trigger the interpolation of this interpolator. Use this callback to do whatever work your interpolator needs to do. More...
 
void OnSpawn ()
 
void OnRecycle ()
 

Protected Attributes

ValueType _a
 
ValueType _b
 
ObjType _target
 

Properties

abstract float length [get]
 Returns the 'length' of this interpolator, in whatever units make sense for this interpolator. If you are interpolating from one point to another, you would return the distance between the points. More...
 
abstract bool isValid [get]
 Returns whether or not this interpolator is currently considered valid. Any invalid interpolators will be removed from a tween. More...
 
- Properties inherited from Leap.Unity.Animation.IInterpolator
float length [get]
 Returns the 'length' of this interpolator, in whatever units make sense for this interpolator. If you are interpolating from one point to another, you would return the distance between the points. More...
 
bool isValid [get]
 Returns whether or not this interpolator is currently considered valid. Any invalid interpolators will be removed from a tween. More...
 

Detailed Description

Definition at line 14 of file InterpolatorBases.cs.

Member Function Documentation

◆ Dispose()

abstract void Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >.Dispose ( )
pure virtual

◆ Init()

InterpolatorBase< ValueType, ObjType > Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >.Init ( ValueType  a,
ValueType  b,
ObjType  target 
)

Definition at line 18 of file InterpolatorBases.cs.

◆ Interpolate()

abstract void Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >.Interpolate ( float  percent)
pure virtual

Called to trigger the interpolation of this interpolator. Use this callback to do whatever work your interpolator needs to do.

Implements Leap.Unity.Animation.IInterpolator.

◆ OnRecycle()

void Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >.OnRecycle ( )

Implements Leap.Unity.IPoolable.

Definition at line 33 of file InterpolatorBases.cs.

◆ OnSpawn()

void Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >.OnSpawn ( )

Implements Leap.Unity.IPoolable.

Definition at line 31 of file InterpolatorBases.cs.

Member Data Documentation

◆ _a

ValueType Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >._a
protected

Definition at line 15 of file InterpolatorBases.cs.

◆ _b

ValueType Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >._b
protected

Definition at line 15 of file InterpolatorBases.cs.

◆ _target

ObjType Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >._target
protected

Definition at line 16 of file InterpolatorBases.cs.

Property Documentation

◆ isValid

abstract bool Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >.isValid
get

Returns whether or not this interpolator is currently considered valid. Any invalid interpolators will be removed from a tween.

Implements Leap.Unity.Animation.IInterpolator.

Definition at line 29 of file InterpolatorBases.cs.

◆ length

abstract float Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >.length
get

Returns the 'length' of this interpolator, in whatever units make sense for this interpolator. If you are interpolating from one point to another, you would return the distance between the points.

The only current use of this function is to drive the Tween.AtRate function.

Implements Leap.Unity.Animation.IInterpolator.

Definition at line 25 of file InterpolatorBases.cs.


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