Options
All
  • Public
  • Public/Protected
  • All
Menu

Some math utility functions.

Hierarchy

  • MathUtils

Index

Constructors

Methods

  • calculateStandardDeviation(data: number[]): number
  • clamp(num: number, min: number, max: number): number
  • Limits the specified number on range [min, max].

    Parameters

    • num: number

      The number to limit.

    • min: number

      The minimum range.

    • max: number

      The maximum range.

    Returns number

  • degreesToRadians(degrees: number): number
  • radiansToDegrees(radians: number): number
  • round(num: number, fractionalDigits: number): number
  • Rounds a specified number with specified amount of fractional digits.

    Parameters

    • num: number

      The number to round.

    • fractionalDigits: number

      The amount of fractional digits.

    Returns number

Generated using TypeDoc