]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Quaternions.h
Force XYZ to initialize to please Valgrind.
[lugaru.git] / Source / Quaternions.h
index 65bd8ae1d16fc16553224094620c7289ff3648be..ec27e6e1a7456dd22affe67052b85ca4c8f19304 100644 (file)
@@ -37,6 +37,7 @@ public:
        float x;
        float y;
        float z;
+    XYZ() : x(0.0f), y(0.0f), z(0.0f) {}
        inline XYZ operator+(XYZ add);
        inline XYZ operator-(XYZ add);
        inline XYZ operator*(float add);
@@ -463,4 +464,4 @@ inline bool DistancePointLine( XYZ *Point, XYZ *LineStart, XYZ *LineEnd, float *
        return 1;
 }
 
-#endif
\ No newline at end of file
+#endif