Angle

Angle

Wrapper class since JavaScript doesn't support references to numbers explicitly. Keeps record of the orientation of an entity.

Constructor

new Angle(radopt)

Source:
Parameters:
Name Type Attributes Default Description
rad number <optional>
0 angle in radians.

Classes

Angle

Members

degree

Description:
  • The orientation in degrees.
Source:
Deprecated:
  • Yes
The orientation in degrees.

radian

Description:
  • The orientation in radians.
Source:
Deprecated:
  • Yes
The orientation in radians.

value :number

Description:
  • Orientation in radians.
Source:
Orientation in radians.
Type:
  • number

Methods

(static) copy(angle)

Description:
  • Copies the orientation of another angle.
Source:
Parameters:
Name Type Description
angle Angle