Namespace Guide math

From MINR.ORG WIKI
Revision as of 02:14, 30 April 2020 by Yeroc424 (talk | contribs)

math

Status: STABLE (safe to use)

Functions

Function Categories

Exponentiation (2)

  • Double pow(Double base, Double exponent)
  • Double sqrt(Double value)

Rounding/Mapping (3)

  • Double abs(Double value)
  • Int floor(Double x)
  • Int ceil(Double x)

Random Number Generation (5)

Type-Bounded

  • Int randomInt()
  • Long randomLong()
  • Float randomFloat()
  • Double randomDouble()

User-Bounded

  • Double random(Double min, Double max)

Trigonometry (14)

Conversions

  • Double deg(Double x)
  • Double rad(Double x)

Basic Functions (Degrees)

  • Double sin(Double x)
  • Double cos(Double x)
  • Double tan(Double x)

Inverse Functions (Degrees)

  • Double arcsin(Double x)
  • Double arccos(Double x)
  • Double arctan(Double x)

Basic Functions (Radians)

  • Double radsin(Double x)
  • Double radcos(Double x)
  • Double radtan(Double x)

Inverse Functions (Radians)

  • Double radarcsin(Double x)
  • Double radarccos(Double x)
  • Double radarctan(Double x)