C# Class Ohana3DS_Transfigured.Ohana.AnimationUtils

Afficher le fichier Open project: Quibilia/Ohana3DS-Transfigured

Méthodes publiques

Méthode Description
getKey ( RenderBase sourceFrame, float frame ) : float

Interpolates a Key Frame from a list of Key Frames.

getLeftFrame ( List keyFrames, float frame ) : RenderBase.OAnimationKeyFrame

Gets the rounded down frame relative to the given Key Frame.

getRightFrame ( List keyFrames, float frame ) : RenderBase.OAnimationKeyFrame

Gets the rounded up frame relative to the given Key Frame.

interpolateHermite ( List keyFrames, float frame ) : float

Interpolates a point between two Key Frames on a given Frame using Hermite Interpolation.

interpolateLinear ( RenderBase a, RenderBase b, float mu ) : RenderBase.OVector3

Interpolates a point between two vectors using Linear Interpolation.

interpolateLinear ( RenderBase a, RenderBase b, float mu ) : RenderBase.OVector4

Interpolates a point between two vectors using Linear Interpolation.

interpolateLinear ( List keyFrames, float frame ) : float

Interpolates a point between two Key Frames on a given Frame using Linear Interpolation.

interpolateLinear ( float a, float b, float mu ) : float

Interpolates a point between two points using Linear Interpolation.

interpolateStep ( List keyFrames, float frame ) : float

Gets the smaller point between two Key Frames. It doesn't actually interpolates anything, just returns the closest value.

Method Details

getKey() public static méthode

Interpolates a Key Frame from a list of Key Frames.
public static getKey ( RenderBase sourceFrame, float frame ) : float
sourceFrame RenderBase The list of key frames
frame float The frame that should be returned or interpolated from the list
Résultat float

getLeftFrame() public static méthode

Gets the rounded down frame relative to the given Key Frame.
public static getLeftFrame ( List keyFrames, float frame ) : RenderBase.OAnimationKeyFrame
keyFrames List List with the Key Frames
frame float The frame number used as reference
Résultat RenderBase.OAnimationKeyFrame

getRightFrame() public static méthode

Gets the rounded up frame relative to the given Key Frame.
public static getRightFrame ( List keyFrames, float frame ) : RenderBase.OAnimationKeyFrame
keyFrames List List with the Key Frames
frame float The frame number used as reference
Résultat RenderBase.OAnimationKeyFrame

interpolateHermite() public static méthode

Interpolates a point between two Key Frames on a given Frame using Hermite Interpolation.
public static interpolateHermite ( List keyFrames, float frame ) : float
keyFrames List The list with all available Key Frames (Hermite format)
frame float The frame number that should be interpolated
Résultat float

interpolateLinear() public static méthode

Interpolates a point between two vectors using Linear Interpolation.
public static interpolateLinear ( RenderBase a, RenderBase b, float mu ) : RenderBase.OVector3
a RenderBase First vector
b RenderBase Second vector
mu float Value between 0-1 of the interpolation amount
Résultat RenderBase.OVector3

interpolateLinear() public static méthode

Interpolates a point between two vectors using Linear Interpolation.
public static interpolateLinear ( RenderBase a, RenderBase b, float mu ) : RenderBase.OVector4
a RenderBase First vector
b RenderBase Second vector
mu float Value between 0-1 of the interpolation amount
Résultat RenderBase.OVector4

interpolateLinear() public static méthode

Interpolates a point between two Key Frames on a given Frame using Linear Interpolation.
public static interpolateLinear ( List keyFrames, float frame ) : float
keyFrames List The list with all available Key Frames (Linear format)
frame float The frame number that should be interpolated
Résultat float

interpolateLinear() public static méthode

Interpolates a point between two points using Linear Interpolation.
public static interpolateLinear ( float a, float b, float mu ) : float
a float First point
b float Second point
mu float Value between 0-1 of the interpolation amount
Résultat float

interpolateStep() public static méthode

Gets the smaller point between two Key Frames. It doesn't actually interpolates anything, just returns the closest value.
public static interpolateStep ( List keyFrames, float frame ) : float
keyFrames List The list with all available Key Frames (Linear format)
frame float The frame number that should be returned
Résultat float