MCPcopy Create free account
hub / github.com/RoboJackets/software-training / operator+

Method operator+

localization/src/particle.hpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 Particle operator+(const Particle & other) const
56 {
57 Particle sum = *this;
58 sum.x += other.x;
59 sum.y += other.y;
60 sum.yaw += other.yaw;
61 sum.x_vel += other.x_vel;
62 sum.yaw_vel += other.yaw_vel;
63 sum.weight += other.weight;
64 return sum;
65 }
66};
67
68} // namespace localization

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected