Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.IScalable

The IScalable property interface.

This interface provides setting and retrieving of a scale factor, either as a uniform value or individual values for scaling along the X, Y and Z axes.

Animation controllers may call the SetScaleFactor() method when scaling keys are present in a given Resource::IAnimation.


Table members

Methods


SetScaleFactor(s)

Set a uniform scaling factor for all three axes.

Boolean SetScaleFactor(Number s)

Parameters
sThe scale factor for the X, Y and Z axes.
Returns
Boolean true if successful.

SetScaleFactor(x, y, z)

Set individual scaling factors for the X, Y and Z axes.

Boolean SetScaleFactor(Number x, Number y, Number z)

Parameters
xThe scale factor for the X axis.
yThe scale factor for the Y axis.
zThe scale factor for the Z axis.
Returns
Boolean true if successful.

SetScaleFactor(scaleFactor)

Set individual scaling factors for the X, Y and Z axes.

Boolean SetScaleFactor(Murl.Math.Vector scaleFactor)

Parameters
scaleFactorA vector containing individual scale factors.
Returns
Boolean true if successful.

SetScaleFactorX(x)

Set the scaling factor for the X axis only.

Boolean SetScaleFactorX(Number x)

Parameters
xThe scale factor for the X axis.
Returns
Boolean true if successful.

SetScaleFactorY(y)

Set the scaling factor for the Y axis only.

Boolean SetScaleFactorY(Number y)

Parameters
yThe scale factor for the Y axis.
Returns
Boolean true if successful.

SetScaleFactorZ(z)

Set the scaling factor for the Z axis only.

Boolean SetScaleFactorZ(Number z)

Parameters
zThe scale factor for the Z axis.
Returns
Boolean true if successful.

GetScaleFactor()

Get the scaling factors for the X, Y and Z axes.

Murl.Math.Vector GetScaleFactor()

Returns
Murl.Math.Vector A vector containing the individual scale factors.

GetScaleFactorX()

Get the scaling factor for the X axis.

Number GetScaleFactorX()

Returns
Number The scale factor for the X axis.

GetScaleFactorY()

Get the scaling factor for the Y axis.

Number GetScaleFactorY()

Returns
Number The scale factor for the Y axis.

GetScaleFactorZ()

Get the scaling factor for the Z axis.

Number GetScaleFactorZ()

Returns
Number The scale factor for the Z axis.