Angle

This struct is like (Degree | Radian)

Constructors

this
this(float deg)
Undocumented in source.

Members

Functions

asDegree
float asDegree()

Get the floating value as degrees.

asRadian
float asRadian()

Get the floating value as radians.

opBinary
Angle opBinary(float v)

binary operator between float ("*" and "/" only)

opBinary
Angle opBinary(Angle a)

binary operator between Angle ("*" and "/" only)

opBinaryRight
Angle opBinaryRight(float v)

binary operator between float ("*" and "/" only)

opCmp
int opCmp(Angle a)

compare operation between Angle

opEquals
bool opEquals(Angle a)

equal operation between Angle

opOpAssign
void opOpAssign(float v)

operator assign between Angle ("*" and "/" only)

opOpAssign
void opOpAssign(Angle a)

operator assign between Angle ("*" and "/" only)

opUnary
Angle opUnary()

unary operator for '-'

toHash
int toHash()

Calculate the hash value for this instance. It is equals to the floating degree expression's hash value.

toString
string toString()

convers to String

Meta