Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Math

Index

Constructors

constructor

Methods

Static abs

  • abs(number: number): number
  • Returns absolute (positive) value of input number.

    Parameters

    • number: number

    Returns number

Static acos

  • acos(number: number): number
  • Parameters

    • number: number

    Returns number

Static asin

  • asin(number: number): number
  • Parameters

    • number: number

    Returns number

Static atan

  • atan(number: number): number
  • Parameters

    • number: number

    Returns number

Static ceil

  • ceil(number: number): number
  • Returns value of input number rounded up to nearest integer.

    Parameters

    • number: number

    Returns number

Static cos

  • cos(number: number): number
  • Parameters

    • number: number

    Returns number

Static exp

  • exp(number: number): number
  • Returns the exponential value of input number.

    Parameters

    • number: number

    Returns number

Static floor

  • floor(number: number): number
  • Returns value of input number rounded down to nearest integer.

    Parameters

    • number: number

    Returns number

Static log

  • log(number: number): number
  • Returns the natural logarithm (base E) of of input number.

    Parameters

    • number: number

    Returns number

Static max

  • max(...number: number[]): any
  • Returns the number with highest value.

    Parameters

    • Rest ...number: number[]

    Returns any

Static min

  • min(...number: number[]): any
  • Returns the number with lowest value.

    Parameters

    • Rest ...number: number[]

    Returns any

Static pow

  • pow(base: number, exponent: number): number
  • Returns value of a number to the power of exponent.

    Parameters

    • base: number
    • exponent: number

    Returns number

Static random

  • random(): number
  • Returns a random number (float) between 0 and 1, borders included.

    Returns number

Static round

  • round(number: number): number
  • Returns value of input number rounded to nearest integer.

    Parameters

    • number: number

    Returns number

Static sin

  • sin(number: number): number
  • Parameters

    • number: number

    Returns number

Static sqrt

  • sqrt(number: number): number
  • Returns square root of input number.

    Parameters

    • number: number

    Returns number

Static tan

  • tan(number: number): number
  • Parameters

    • number: number

    Returns number

Generated using TypeDoc