Murl Engine Lua Addon API  Version 1.0 beta
Murl.Logic.AnimationKey.Real

A template class to create key objects for the Animation class.


Table members

Functions


Murl.Logic.AnimationKey.Real.new()

The default constructor.

Murl.Logic.AnimationKey.Real new()

Returns
Murl.Logic.AnimationKey.Real

Murl.Logic.AnimationKey.Real.new(time, value)

The constructor including time and value.

Murl.Logic.AnimationKey.Real new(Number time, Number value)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
Returns
Murl.Logic.AnimationKey.Real

Murl.Logic.AnimationKey.Real.new(time, value, interpolation)

The constructor including time, value and interpolation.

Murl.Logic.AnimationKey.Real new(Number time, Number value, Murl.IEnums.Interpolation interpolation)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
interpolationThe interpolation type.
Returns
Murl.Logic.AnimationKey.Real

Murl.Logic.AnimationKey.Real.new(time, value, linear)

The constructor including time, value and linear flag.

Murl.Logic.AnimationKey.Real new(Number time, Number value, Boolean linear)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
lineartrue for linear interpolation, false for constant interpolation.
Returns
Murl.Logic.AnimationKey.Real


Methods


IsEqual(other)

Compare the animation key to another one.

Boolean IsEqual(Murl.Logic.AnimationKey.Real other)

Parameters
otherThe key to compare.
Returns
Boolean true if both keys are identical.


Metamethods


The equal to operator.

The "equal to" comparison operator, calls IsEqual().

Returns
Boolean = Murl.Logic.AnimationKey.Real == Murl.Logic.AnimationKey.Real


Instance Members


mTime

The time of the key.

Returns
Number

mValue

The value of the key.

Returns
Number

mInterpolation

The interpolation type of the key.

Returns
Murl.IEnums.Interpolation