[DEBUG] correct some bugs

This commit is contained in:
Edouard DUPIN 2016-03-24 21:54:13 +01:00
parent c218b183b9
commit a6a3daad82
3 changed files with 5 additions and 9 deletions

View File

@ -402,7 +402,7 @@ namespace etk {
* @return The absolute max value.
*/
T maxDifference(const Matrix<T>& _input) {
if (m_size != _input.m_size)
if (m_size != _input.m_size) {
TK_WARNING("better to do with same size Matrix");
}
T max = 0;

View File

@ -400,11 +400,11 @@ namespace etk {
std::ostream& operator <<(std::ostream& _os, const etk::Vector2D<bool>& _obj);
};
// To siplify the writing of the code ==> this permit to have the same name with the glsl language...
typedef etk::Vector2D<float> vec2;
typedef etk::Vector2D<int32_t> ivec2;
using vec2 = etk::Vector2D<float>;
using ivec2 = etk::Vector2D<int32_t>;
// not compatible with glsl ... but it is better to have a same writing
typedef etk::Vector2D<uint32_t> uivec2;
typedef etk::Vector2D<bool> bvec2;
using uivec2 = etk::Vector2D<uint32_t>;
using bvec2 = etk::Vector2D<bool>;
inline vec2 vec2ClipInt32(const vec2& _val) {
return vec2((int32_t)_val.x(), (int32_t)_val.y());

View File

@ -41,10 +41,6 @@
#endif
#endif
namespace std17 = std;
namespace std14 = std;
namespace std11 = std;
#include <etk/stdTools.h>
#ifndef ETK_BUILD_LINEARMATH