diff --git a/etk/math/Vector2D.h b/etk/math/Vector2D.h index bf5dba3..6f77598 100644 --- a/etk/math/Vector2D.h +++ b/etk/math/Vector2D.h @@ -24,7 +24,15 @@ namespace etk /***************************************************** * Constructor *****************************************************/ - Vector2D(void) { }; // do nothing ==> better for optimisation + Vector2D(void) + { + #ifdef DEBUG + // in debug mode we set supid value to prevent forget of the inits ... + m_floats[0] = (T)34673363; + m_floats[1] = (T)34523535; + #endif + }; + Vector2D(T _x, T _y) { m_floats[0] = _x; diff --git a/etk/math/Vector3D.h b/etk/math/Vector3D.h index 91a0af7..5f09151 100644 --- a/etk/math/Vector3D.h +++ b/etk/math/Vector3D.h @@ -30,6 +30,13 @@ namespace etk */ Vector3D(void) { + #ifdef DEBUG + // in debug mode we set supid value to prevent forget of the inits ... + m_floats[0] = (T)34673363; + m_floats[1] = (T)34523535; + m_floats[2] = (T)43523424; + m_floats[3] = (T)23452345; + #endif } /** * @brief Constructor from scalars