Math functions (using VFPU) Functions using the Vector Floating Point Unit (VFPU). All this functions are based on libpspmath version 4 by MrMr[iCE]
#define oslSrand vfpu_srand |
Set vfpu random generator seed
- Parameters
-
#define oslRandf vfpu_randf |
Return random float value
- Parameters
-
min | - minimum value to return |
max | - maximum value to return |
#define oslRand_8888 vfpu_rand_8888 |
Return random color value in 8888 format This always sets the alpha channel value to 0xFF
- Parameters
-
min | - minimum value for each color channel (0..255) |
max | - maximum value for each color channel (0..255) |
#define oslSinf vfpu_sinf |
Calculate sine
- Parameters
-
#define oslCosf vfpu_cosf |
Calculate cosine
- Parameters
-
#define oslTanf vfpu_tanf |
Calculate tangent
- Parameters
-
#define oslAsinf vfpu_asinf |
Calculate inverse sine (arcsin)
- Parameters
-
#define oslAcosf vfpu_acosf |
Calculate inverse cosine (arccos)
- Parameters
-
#define oslAtanf vfpu_atanf |
Calculate inverse tangent (arctan)
- Parameters
-
#define oslAtan2f vfpu_atan2f |
Calculate inverse tangent, with proper quadrant fixup
- Parameters
-
#define oslSinhf vfpu_sinhf |
Calculate hyperbolic sine
- Parameters
-
#define oslCoshf vfpu_coshf |
Calculate hyperbolic cosine
- Parameters
-
#define oslTanhf vfpu_tanhf |
Calculate hyperbolic tangent
- Parameters
-
#define oslSincos vfpu_sincos |
Calculate sine and cosine
- Parameters
-
r | - input in radians |
s | - pointer to float for sin |
c | - pointer to float for cos |
#define oslExpf vfpu_expf |
Calculate exponent of x
- Parameters
-
#define oslLogf vfpu_logf |
Calculate logarithm of x
- Parameters
-
#define oslPowf vfpu_powf |
Calculate x raised to the power of y
- Parameters
-
x | - number to raise power of |
y | - power to raise x by |
#define oslFmodf vfpu_fmodf |
Calculate floating point remainder of x/y
- Parameters
-