IO is an event based input manager which permit to select which composents are manged on your system

Dependencies:   C12832 FXOS8700Q LM75B MMA7660

Revision:
0:2ac59c564ab0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Vector.hpp	Tue Feb 23 17:25:07 2016 +0000
@@ -0,0 +1,27 @@
+#pragma once
+
+template <typename Type>
+struct Vector
+{
+    typedef Vector<Type>   This;
+    
+    Type    x;
+    Type    y;
+    Type    z;
+    
+    Vector(void) : x(0), y(0), z(0) {}
+    Vector(Type X, Type Y, Type Z) : x(X), y(Y), z(Z) {}
+    Vector(const Vector &copy) { *this = copy; }
+    
+    This    &operator=(const Vector &copy)
+    {
+        x = copy.x;
+        y = copy.y;
+        z = copy.z;
+        return (*this);
+    }
+    
+    bool            operator==(const Vector &other) const { return (other.x == x && other.y == y && other.z == z); }    
+    bool            operator!=(const Vector &other) const { return (!(*this == other)); }
+    bool            eq(const Vector &other, float prec) const;
+};