Math Class

Aurora\Helpers Namespace


Methods

clamp

Clamps a value between an upper and lower bound

Parameters

  • mixed $num — Number to clamp
  • mixed $min — Minimum value
  • mixed $max — Maximum value

Return Value

  • mixed

Signature

public function clamp(mixed $num, mixed $min, mixed $max)

Go to top