Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YMath

Index

Constructors

constructor

Methods

Static acos

  • acos(number: number): number
  • Returns arc-cosinus of an angle.

    Parameters

    • number: number

    Returns number

Static asin

  • asin(number: number): number
  • Returns arc-sinus of an angle.

    Parameters

    • number: number

    Returns number

Static atan

  • atan(number: number): number
  • Returns arc-tangent of an angle.

    Parameters

    • number: number

    Returns number

Static clamp

  • clamp(number: number, min: number, max: number): number
  • This instruction will clamp input number between a minimum and maximum values (included).

    Parameters

    • number: number
    • min: number
    • max: number

    Returns number

Static clamp01

  • clamp01(number: number): number
  • This instruction will clamp input number between 0 and 1 (included).

    Parameters

    • number: number

    Returns number

Static cos

  • cos(number: number): number
  • Returns cosinus of an angle.

    Parameters

    • number: number

    Returns number

Static random

  • random(min: number, max: number): number
  • Returns a random number from selected interval.

    Parameters

    • min: number
    • max: number

    Returns number

Static sin

  • sin(number: number): number
  • Returns sinus of an angle.

    Parameters

    • number: number

    Returns number

Static tan

  • tan(number: number): number
  • Returns tangent of an angle.

    Parameters

    • number: number

    Returns number

Generated using TypeDoc