OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Mathematics.h File Reference

Mathematic functions. More...

#include "VectorTypes.h"
#include <cmath>
#include <cstdlib>

Go to the source code of this file.




#define M_PI   3.14159265358979323846f
 The value of pi. More...


float MaliSDK::distanceBetweenPoints (const Vec2f &point1, const Vec2f &point2)
 Compute Euclidean 2-dimensional distance between two points on XY plane. More...
float MaliSDK::signum (float f)
 Get the sign of a number. More...
float MaliSDK::uniformRandomNumber ()
 Generate random number in the 0.0 to 1.0 range. More...
float MaliSDK::degreesToRadians (float degrees)
 Convert an angle in degrees to radians. More...

Detailed Description

Mathematic functions.

Definition in file Mathematics.h.

Macro Definition Documentation

#define M_PI   3.14159265358979323846f

The value of pi.

Definition at line 37 of file Mathematics.h.