Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility class for converting angles

Hierarchy

  • Angle

Index

Constructors

Methods

  • toDegrees(radians: number): number
  • Convert an angle given in radians to degrees

    Parameters

    • radians: number

      the angle to convert

    Returns number

    the angle in degrees

  • toRadians(degrees: number): number
  • Convert an angle given in degrees to radians

    Parameters

    • degrees: number

    Returns number

    the angle in radians