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

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


Table members

Functions


Murl.Logic.AnimationKey.MathVector.new()

The default constructor.

Murl.Logic.AnimationKey.MathVector new()

Returns
Murl.Logic.AnimationKey.MathVector

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

The constructor including time and value.

Murl.Logic.AnimationKey.MathVector new(Number time, Murl.Math.Vector value)

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

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

The constructor including time, value and interpolation.

Murl.Logic.AnimationKey.MathVector new(Number time, Murl.Math.Vector 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.MathVector

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

The constructor including time, value and linear flag.

Murl.Logic.AnimationKey.MathVector new(Number time, Murl.Math.Vector 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.MathVector


Methods


IsEqual(other)

Compare the animation key to another one.

Boolean IsEqual(Murl.Logic.AnimationKey.MathVector 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.MathVector == Murl.Logic.AnimationKey.MathVector


Instance Members


mTime

The time of the key.

Returns
Number

mValue

The value of the key.

Returns
Murl.Math.Vector

mInterpolation

The interpolation type of the key.

Returns
Murl.IEnums.Interpolation