The OpenD Programming Language

Angle

A type to represent an angle, taking away ambiguity of if it wants degrees or radians.

Angle a = Angle.degrees(180);
Angle b = Angle.radians(3.14159);

// note there might be slight changes in precision due to internal conversions

Members

Functions

degrees
float degrees()
opBinary
Angle opBinary(Angle rhs)

The +, -, +=, and -= operators all work on the angles too.

opBinary
Angle opBinary(Angle rhs)
opOpAssign
Angle opOpAssign(Angle rhs)

The +, -, +=, and -= operators all work on the angles too.

radians
float radians()
degrees
Angle degrees(float deg)
radians
Angle radians(float rad)

Static functions

Meta

History

Added August 29, 2023 (dub v11.1)