RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
MathHelper Class Reference

#include <mathhelper.hpp>

Static Public Member Functions

static int clampi (int value, int min, int max)
 
static float clampf (float value, float min, float max)
 
static float roundCeil (float value, int decimal_places)
 
static float roundNearest (float value, int decimal_places)
 
static float roundFloor (float value, int decimal_places)
 

Detailed Description

Definition at line 35 of file mathhelper.hpp.

Member Function Documentation

static float MathHelper::clampf ( float  value,
float  min,
float  max 
)
inlinestatic

Definition at line 43 of file mathhelper.hpp.

static int MathHelper::clampi ( int  value,
int  min,
int  max 
)
inlinestatic

Definition at line 37 of file mathhelper.hpp.

static float MathHelper::roundCeil ( float  value,
int  decimal_places 
)
inlinestatic

Definition at line 49 of file mathhelper.hpp.

static float MathHelper::roundFloor ( float  value,
int  decimal_places 
)
inlinestatic

Definition at line 69 of file mathhelper.hpp.

static float MathHelper::roundNearest ( float  value,
int  decimal_places 
)
inlinestatic

Definition at line 62 of file mathhelper.hpp.


The documentation for this class was generated from the following file: