Arduino Helpers master
Utility library for Arduino
Classes
Vector.hpp File Reference

Detailed Description

Definition of Vec2f and Vec3f.

Vec2fs can be added, subtracted, multiplied (dot product) and normalized. It also has an implementation of the following operators: "+", "+=", "-", "-=", "*" (vector-vector); "*", "*=", "/", "/=" (vector-scalar); "==", "!=" (equality); "*" (scalar-vector); "<<" (printing). The same applies for Vec3fs.

Definition in file Vector.hpp.

#include <AH/Arduino-Wrapper.h>
#include <AH/STL/cmath>
+ Include dependency graph for Vector.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Vec2f
 Type for 2D vectors of floating point numbers. More...
 
struct  Vec3f
 Type for 3D vectors of floating point numbers. More...