Tile - YMath - Clamp – Ylands

From Bohemia Interactive Community
(Redirected from Ylands Tile - Math clamp)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Clamp(Number, Min, Max)

YlandsTile-213.png

static clamp(number: number, min: number, max: number): number;

Parameters

number

min

Minimum number

max

Maximum number

Returns

number

Availability

Client, Server, Custom Controller

Description

This instruction will clamp input number between a minimum and maximum values (included).