Functions | |
float | hal_gfx_sin (float angle_degrees) |
Fast sine approximation of a given angle. More... | |
float | hal_gfx_cos (float angle_degrees) |
Fast cosine approximation of a given angle. More... | |
float | hal_gfx_tan (float angle_degrees) |
Fast tangent approximation of a given angle. More... | |
float | hal_gfx_pow (float x, float y) |
A rough approximation of x raised to the power of y. USE WITH CAUTION! More... | |
float | hal_gfx_sqrt (float x) |
A rough approximation of the square root of x. USE WITH CAUTION! More... | |
float | hal_gfx_atan (float x) |
A floating-point approximation of the inverse tangent of x. More... | |
int | hal_gfx_f2fx (float f) |
Convert float to 16.16 fixed point. More... | |
float hal_gfx_atan | ( | float | x | ) |
A floating-point approximation of the inverse tangent of x.
[in] | x | X value |
float hal_gfx_cos | ( | float | angle_degrees | ) |
Fast cosine approximation of a given angle.
[in] | angle_degrees | Angle in degrees |
int hal_gfx_f2fx | ( | float | f | ) |
Convert float to 16.16 fixed point.
[in] | f | Value to be converted |
float hal_gfx_pow | ( | float | x, |
float | y | ||
) |
A rough approximation of x raised to the power of y. USE WITH CAUTION!
[in] | x | base value. Must be non negative. |
[in] | y | power value |
float hal_gfx_sin | ( | float | angle_degrees | ) |
Fast sine approximation of a given angle.
[in] | angle_degrees | Angle in degrees |
float hal_gfx_sqrt | ( | float | x | ) |
A rough approximation of the square root of x. USE WITH CAUTION!
[in] | x | X value. Must be non negative |
float hal_gfx_tan | ( | float | angle_degrees | ) |
Fast tangent approximation of a given angle.
[in] | angle_degrees | Angle in degrees |