clamp<T extends num> method

  1. @defineMethodSkip
T clamp<T extends num>(
  1. T val
)

Returns val clamped to be in the range 0..val..1. Maintains type

Implementation

@defineMethodSkip
T clamp<T extends num>(T val) => val.clamp(0.0, 1.0) as T;