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

Method operator-

src/utilities/geometry/Vector3d.cpp:52–57  ·  view source on GitHub ↗

subtraction

Source from the content-addressed store, hash-verified

50
51/// subtraction
52Vector3d Vector3d::operator-(const Vector3d& other) const {
53 double newX = x() - other.x();
54 double newY = y() - other.y();
55 double newZ = z() - other.z();
56 return {newX, newY, newZ};
57}
58
59/// subtraction
60Vector3d& 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