ProtoFlux:Clamp 01

From Resonite Wiki
Revision as of 02:33, 15 January 2024 by Yosh (talk | contribs) (no usage)
Clamp01
N
*
Math

Clamp 01 clamps the provided numeric value between 0 and 1.

Inputs

N (Generic)

A numeric value.

Outputs

* (Generic)

The input value, with the following conditions:

  1. If N < 0, output 0
  2. If N > 1, output 1
  3. Otherwise, output N

In the case of types with multiple values, each individual value will be clamped.

Examples