CLASSES
TagsA - Z

Angle

Math

Description

class Angle

Constructor

new Angle(radians)

Creates an Angle object of "radians" radians (float).

Parameters

Name Type Description
radians number

Members

degrees : () => number

Returns the Angle value in degrees (float).

radians : () => number

Returns the Angle value in radians (float).

Methods

static BetweenTwoPoints(a, b) → Angle

Returns a new Angle object valued with the angle value in radians between the two passed vectors.

Parameters

Name Type Description
a Vector2
b Vector2

static FromRadians(radians) → Angle

Returns a new Angle object from the passed float in radians.

Parameters

Name Type Description
radians number

static FromDegrees(degrees) → Angle

Returns a new Angle object from the passed float in degrees.

Parameters

Name Type Description
degrees number