Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Vector.cpp
Go to the documentation of this file.
1#include "Vector.hpp"
2
4#ifndef ARDUINO
5#include <ostream> // std::ostream, <<
6#endif
7
9
10// LCOV_EXCL_START
11
12#ifndef ARDUINO
13
16std::ostream &operator<<(std::ostream &os, Vec2f v) {
17 return os << "(" << v.x << ", " << v.y << ")";
18}
19
22std::ostream &operator<<(std::ostream &os, Vec3f v) {
23 return os << "(" << v.x << ", " << v.y << ", " << v.z << ")";
24}
25
26#endif
27
30Print &operator<<(Print &os, Vec2f v) {
31 return os << "(" << v.x << ", " << v.y << ")";
32}
33
36Print &operator<<(Print &os, Vec3f v) {
37 return os << "(" << v.x << ", " << v.y << ", " << v.z << ")";
38}
39
40// LCOV_EXCL_STOP
41
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
Print & operator<<(Print &os, Cable c)
Definition Cable.cpp:6
Definition of Vec2f and Vec3f.
An array wrapper for easy copying, comparing, and iterating.
Definition Array.hpp:32
Type for 2D vectors of floating point numbers.
Definition Vector.hpp:39
Print & operator<<(Print &os, Vec2f v)
Printing.
Definition Vector.cpp:30
Type for 3D vectors of floating point numbers.
Definition Vector.hpp:140
Print & operator<<(Print &os, Vec3f v)
Printing.
Definition Vector.cpp:36