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

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


Table members

Functions


Murl.Logic.AnimationKey.SInt64.new()

The default constructor.

Murl.Logic.AnimationKey.SInt64 new()

Returns
Murl.Logic.AnimationKey.SInt64

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

The constructor including time and value.

Murl.Logic.AnimationKey.SInt64 new(Number time, Integer value)

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

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

The constructor including time, value and interpolation.

Murl.Logic.AnimationKey.SInt64 new(Number time, Integer 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.SInt64

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

The constructor including time, value and linear flag.

Murl.Logic.AnimationKey.SInt64 new(Number time, Integer 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.SInt64


Methods


IsEqual(other)

Compare the animation key to another one.

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


Instance Members


mTime

The time of the key.

Returns
Number

mValue

The value of the key.

Returns
Integer

mInterpolation

The interpolation type of the key.

Returns
Murl.IEnums.Interpolation