Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Functions

Variables

Const EPSILON

EPSILON: 0.00001 = 0.00001

Const RANDOM

RANDOM: random = Math.random

Const degree

degree: number = Math.PI / 180

Functions

equals

  • equals(a: number, b: number, tolerance?: number): boolean
  • Tests whether or not the arguments have approximately the same value, within an absolute or relative tolerance (an absolute tolerance is used for values less than or equal to 1.0, and a relative tolerance is used for larger values)

    Parameters

    • a: number

      The first number to test

    • b: number

      The second number to test

    • Default value tolerance: number = EPSILON

      The tolerance to test for

    Returns boolean

    True if the numbers are approximately equal, false otherwise

toRadian

  • toRadian(a: number): number
  • Convert Degree to Radian

    Parameters

    • a: number

      Angle in Degrees

    Returns number

    Angle in Radians

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc