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:
2:26ba41c58962
Parent:
1:857642c51139
Child:
3:c0137be74db4
--- a/Vector3.h	Tue Feb 24 10:05:29 2015 +0000
+++ b/Vector3.h	Thu Mar 12 10:14:52 2015 +0000
@@ -36,6 +36,10 @@
         z = z/len;
     }
     
+    Vector3 normalised() {
+        return Vector3(x, y, z) / length();
+    }
+    
     float dot_product(const Vector3 &v) const{
         return x*v.x + y*v.y + z*v.z;
     }