Angle
Sourcereal DEGTORAD
Source
Converts Degrees to Radians
real RADTODEG
Source
Converts Radians to Degrees
function angle(real radians) returns angle
Source
an angle is just a wrapper around a real which allows for
typesafe APIs without the confusion between radians and degrees
function real.asAngleDegrees() returns angle
Source
interpret this real as an angle given in degrees
function int.asAngleRadians() returns angle
Source
interpret this int as an angle given in radians
function real.asAngleRadians() returns angle
Source
interpret this real as an angle given in radians
function angle.cos() returns real
Source
get the cosine of this angle
function angle.degrees() returns real
Source
get the real representation of this angle in degrees
function real.fromDeg() returns angle
Source
interpret this real as an angle given in degrees
function real.fromRad() returns angle
Source
interpret this real as an angle given in degrees
function int.fromRad() returns angle
Source
interpret this int as an angle given in degrees
function angle.op_divReal(real scalar) returns angle
Source
divides the angle by the given scalar
function angle.op_minus(angle other) returns angle
Source
substracts two angles
function angle.op_mult(real scalar) returns angle
Source
multiplies the angle with the given scalar
function real.op_mult(angle ang) returns angle
Source
multiplies with the given angle
function angle.op_plus(angle other) returns angle
Source
adds two angles
function angle.radians() returns real
Source
get the real representation of this angle in radians
function angle.sin() returns real
Source
get the sine of this angle
function angle.tan() returns real
Source
get the tangent of this angle