ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:clamp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
functions:clamp [2017/03/15 10:28] korshunfunctions:clamp [2017/03/15 10:36] (current) korshun
Line 14: Line 14:
 ===== Examples ===== ===== Examples =====
 <code> <code>
-clamp(7, 6, 8) -> 7; +clamp(7, 6, 8) -> 7 
-clamp(5, 6, 8) -> 6; +clamp(5, 6, 8) -> 6 
-clamp(8, 6, 8) -> 8;+clamp(8, 6, 8) -> 8
  
-clamp(0.25, 0.2, 0.3) -> 0.25; +clamp(0.25, 0.2, 0.3) -> 0.25 
-clamp(0.15, 0.2, 0.3) -> 0.2; +clamp(0.15, 0.2, 0.3) -> 0.2 
-clamp(0.35, 0.2, 0.3) -> 0.3;+clamp(0.35, 0.2, 0.3) -> 0.3
 </code> </code>
functions/clamp.txt · Last modified: 2017/03/15 10:36 by korshun