Skip to content

Math Class

Brisingr Aerowing edited this page Mar 29, 2019 · 3 revisions

Importing

import mods.ctutils.utils.Math

Methods

TYPE is replaced with the respective available types.

  • max - Comes in double, float, int, and long versions.
  • min - Comes in double, float, int, and long versions.
  • floor - comes in double -> int
  • ceil - double -> int
  • abs - Comes in double, float, int, and long versions.
  • sin - double -> double
  • cos - double -> double
  • tan - double -> double
  • asin - double -> double
  • acos - double -> double
  • atan - double -> double
  • sinh - double -> double
  • cosh - double -> double
  • tanh - double -> double
  • sqrt - double -> double
  • random - returns a double
  • round - comes in float -> int and double -> long versions
  • clamp - comes in float, double, int and long versions
Clone this wiki locally