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@0:2ac59c564ab0, 2016-02-23 (annotated)
- Committer:
- co838_app56
- Date:
- Tue Feb 23 17:25:07 2016 +0000
- Revision:
- 0:2ac59c564ab0
- Child:
- 3:1ab88130bb9d
Managing k64f & app shield;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
co838_app56 | 0:2ac59c564ab0 | 1 | #include "Vector.hpp" |
co838_app56 | 0:2ac59c564ab0 | 2 | |
co838_app56 | 0:2ac59c564ab0 | 3 | #include <float.h> |
co838_app56 | 0:2ac59c564ab0 | 4 | |
co838_app56 | 0:2ac59c564ab0 | 5 | template <> |
co838_app56 | 0:2ac59c564ab0 | 6 | bool Vector<float>::operator==(const Vector &other) const { return (other.x - x < FLT_MIN && other.y - y < FLT_MIN && other.z - z < FLT_MIN); } |
co838_app56 | 0:2ac59c564ab0 | 7 | |
co838_app56 | 0:2ac59c564ab0 | 8 | template <> |
co838_app56 | 0:2ac59c564ab0 | 9 | bool Vector<float>::eq(const Vector &other, float prec) const { return (other.x - x < prec && other.y - y < prec && other.z - z < prec); } |