ClampInt32 Data Member Function

Clamps the source value to the range specified by the floor and ceiling values.

Prototype

static int32 ClampInt32( int32 src, int32 floor, int32 ceiling )

Parameters

Parameter Type Parameter Name Documentation
int32srcThe source value.
int32floorThe floor value.
int32ceilingThe ceiling value.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.