Skip to main content

Angle

An angle whose value you can get either as radians or degrees.

export class Angle {
degrees: Float { get }
radians: Float { get }

constructor(degrees: Float)
constructor(radians: Float)
}

Constructors

(degrees: Float)

Constructs an angle from degrees.

(radians: Float)

Constructs an angle from radians.

Properties

degrees: Float (get)

The angle represented in degrees.

radians: Float (get)

The angle represented in radians.