| 1 | #include "DataPointCollection.h" |
| 2 | |
| 3 | DataPoint DataPoint::operator+(DataPoint const& other) const |
| 4 | { |
| 5 | DataPoint result; |
| 6 | for (int i = 0; i < MAX_COLORS; ++i) { |
| 7 | result.values[i] = values[i] + other.values[i]; |
| 8 | } |
| 9 | result.summedValues = summedValues + other.summedValues; |
| 10 | return result; |
| 11 | } |
| 12 | |
| 13 | DataPoint DataPoint::operator/(double divisor) const |
| 14 | { |
nothing calls this directly
no outgoing calls
no test coverage detected