MCPcopy Create free account
hub / github.com/chrxh/alien / operator+

Method operator+

source/EngineInterface/DataPointCollection.cpp:3–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "DataPointCollection.h"
2
3DataPoint 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
13DataPoint DataPoint::operator/(double divisor) const
14{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected