IO is an event based input manager which permit to select which composents are manged on your system
Dependencies: C12832 FXOS8700Q LM75B MMA7660
Vector.cpp
- Committer:
- co838_app56
- Date:
- 2016-02-23
- Revision:
- 0:2ac59c564ab0
- Child:
- 3:1ab88130bb9d
File content as of revision 0:2ac59c564ab0:
#include "Vector.hpp" #include <float.h> template <> bool Vector<float>::operator==(const Vector &other) const { return (other.x - x < FLT_MIN && other.y - y < FLT_MIN && other.z - z < FLT_MIN); } template <> bool Vector<float>::eq(const Vector &other, float prec) const { return (other.x - x < prec && other.y - y < prec && other.z - z < prec); }