MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / operator+

Method operator+

src/utilities/geometry/Vector3d.cpp:36–41  ·  view source on GitHub ↗

addition

Source from the content-addressed store, hash-verified

34
35/// addition
36Vector3d Vector3d::operator+(const Vector3d& other) const {
37 double newX = x() + other.x();
38 double newY = y() + other.y();
39 double newZ = z() + other.z();
40 return {newX, newY, newZ};
41}
42
43/// addition
44Vector3d& Vector3d::operator+=(const Vector3d& other) {

Callers

nothing calls this directly

Calls 6

xFunction · 0.50
yFunction · 0.50
zFunction · 0.50
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected