Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

math Namespace Reference


Detailed Description

Some math stuff.


Functions

int round (float a)
 Quick rounding of float to integer.


Function Documentation

int round float    a [inline]
 

Quick rounding of float to integer.

6 cycles or so. Can be used for quick float->int conversion (eg. for positive numbers: int i = round( f - 0.5f )).


Generated on Thu Dec 5 17:27:58 2002 for LT Game Jam Session by doxygen1.2.17