Top | ![]() |
![]() |
![]() |
![]() |
The LiveWallpaper Core Library provides faster implementations of some common mathematical functions.
gfloat
lw_sin (gfloat angle
);
Calculates the sine value of an angle by using a lookup table. Using this function
is usually faster than computing the sine value with the sin()
function of the standard
library.
Make sure to use this function only with angles in the allowed range. This function does not check if the angle is out of range and so the application will crash.
Since: 0.5
gfloat
lw_cos (gfloat angle
);
Calculates the cosine value of an angle by using a lookup table. Using this function
is usually faster than computing the cosine value with the cos()
function of the standard
library.
Make sure to use this function only with angles in the allowed range. This function does not check if the angle is out of range and so the application will crash.
Since: 0.5