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

Function operator*

src/utilities/geometry/Vector3d.cpp:102–104  ·  view source on GitHub ↗

multiplication by a scalar

Source from the content-addressed store, hash-verified

100
101/// multiplication by a scalar
102Vector3d operator*(double mult, const Vector3d& vec) {
103 return {mult * vec.x(), mult * vec.y(), mult * vec.z()};
104}
105
106/// normalize to one
107bool Vector3d::normalize() {

Callers

nothing calls this directly

Calls 3

xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected