Angle

Defines angle representation

Hierarchy

  • Angle

Index

Constructors

constructor

Find examples in Playground
  • new Angle(radians: number): Angle
  • Creates an Angle object of "radians" radians (float).

    Parameters

    • radians: number

    Returns Angle

Methods

degrees

Find examples in Playground
  • degrees(): number
  • Get value in degrees

    Returns number

    the Angle value in degrees (float)

radians

Find examples in Playground
  • radians(): number
  • Get value in radians

    Returns number

    the Angle value in radians (float)

Static BetweenTwoPoints

Find examples in Playground
  • Gets a new Angle object valued with the angle value in radians between the two given vectors

    Parameters

    Returns Angle

    a new Angle

Static FromDegrees

Find examples in Playground
  • FromDegrees(degrees: number): Angle
  • Gets a new Angle object from the given float in degrees

    Parameters

    • degrees: number

      defines the angle value in degrees

    Returns Angle

    a new Angle

Static FromRadians

Find examples in Playground
  • FromRadians(radians: number): Angle
  • Gets a new Angle object from the given float in radians

    Parameters

    • radians: number

      defines the angle value in radians

    Returns Angle

    a new Angle

Generated using TypeDoc