br_angle
Also see br_scalar
332
and
br_euler
118.
typedef
angles.h
for a precise declaration)
br_fixed_luf br_angle Angle type
br_scalar BrDegreeToRadian(br_scalar s)Converts
s
from angular units of degrees into radians.
br_scalar BrRadianToDegree(br_scalar s)Converts
s
from angular units of radians into degrees.Two angles may be added and subtracted.
An angle may be multiplied or divided by a standard integral type.
The following trigonometric macros may be used:
BR_SIN(a)
Return Sine of br_angle
102
a
as a br_scalar
332.
BR_COS(a)
Return Cosine of br_angle
102
a
as a br_scalar
332.
BR_ASIN(s)
Return angle whose Sine is br_scalar
332
s
, as a br_angle
102.
BR_ACOS(s)
Return angle whose Cosine is br_scalar
332
s
, as a br_angle
102.
BR_ATAN2(y,x)
Return angle whose Tangent is br_scalar
332
y/x
, as a br_angle
102.
BR_ATAN2FAST(y,x)
Faster, lower precision version of BR_ATAN2(y,x)
.
See br_fixed_ls
129
for details of fixed point functions used by these macros.
ConvertsBR_ANGLE_DEG(x)
x
from a number of degrees to br_angle
102
.
BR_ANGLE_RAD(x)
Converts x
from a number of radians to br_angle
102
.
PI
If not already defined,
PI
is defined as 3.14159265358979323846
.
br_scalar
332
as an intermediary.
332
br_angleConvertsBrScalarToAngle
(br_scalar s)
s
from a fractional revolution (0..1).
br_angleConvertsBrDegreeToAngle
(br_scalar d)
d
from an angle in degrees.
br_angleConvertsBrRadianToAngle
(br_scalar r)
r
from an angle in radians.
br_scalar
332
as an intermediary.
br_scalar BrAngleToScalar
(br_angle a)
Converts a
to a fractional revolution (0..1).
br_scalarConvertsBrAngleToDegree
(br_angle a)
a
to an angle in degrees.
br_scalarConvertsBrAngleToRadian
(br_angle a)
a
to an angle in radians.