Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00039
00040 #ifndef COMMON_H_
00041 #define COMMON_H_
00042
00043 #include <sstream>
00044
00049 void
00050 setIdentity(float* matrix);
00051
00060 void
00061 multMatrix(const float* left, const float* right, float* result);
00062
00066 bool
00067 invertMatrix(const float* matrix, float* inverse);
00068
00073 template<typename T>
00074 void
00075 toString(T input, std::string &result)
00076 {
00077 std::stringstream ss;
00078 ss << input;
00079 result = ss.str();
00080 }
00081
00084 void
00085 stringToLower(std::string &s);
00086
00087 #endif // COMMON_H_