A quick implementation of Quaternion and Vector classes for use with my MPU9150 library

Dependents:   cool_step_new cool_step_1 SML2

Fork of QuaternionMath by Chris Pepper

Revision:
3:c0137be74db4
Parent:
2:26ba41c58962
Child:
4:1ced03aa8c75
--- a/Vector3.h	Thu Mar 12 10:14:52 2015 +0000
+++ b/Vector3.h	Fri Mar 13 09:10:41 2015 +0000
@@ -36,8 +36,8 @@
         z = z/len;
     }
     
-    Vector3 normalised() {
-        return Vector3(x, y, z) / length();
+    Vector3 normalised() const{
+        return *this / length();
     }
     
     float dot_product(const Vector3 &v) const{