Module LM

LM is the lowest-level module, and includes very basic objects like vectors and colors.

Methods:

Name Returns Description Ver
Beep Beep() void Causes to computer to beep < 9.5
Clamp Clamp(f, min, max) real Clamps a value to ensure that it is within certain bounds < 9.5
Lerp Lerp(f, min, max) real This function is a shortcut for linear interpolation between two numbers < 9.5
Round Round(f) int32 Returns the closest integer to the supplied value < 9.5
Slerp Slerp(f, min, max) real This function is a shortcut for smooth interpolation between two numbers < 9.5
Snooze Snooze(msec) void Causes Moho to pause for the specified number of milliseconds < 9.5

Constants:

Axis

Name Value Description Ver
LM.FREE_AXIS 6 Arbitrary free axis < 9.5
LM.NEGX_AXIS 3 Negative X axis < 9.5
LM.NEGY_AXIS 4 Negative Y axis < 9.5
LM.NEGZ_AXIS 5 Negative Z axis < 9.5
LM.X_AXIS 0 Positive X axis < 9.5
LM.Y_AXIS 1 Positive Y axis < 9.5
LM.Z_AXIS 2 Positive Z axis < 9.5