MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / operator/

Method operator/

test/numeric_test.cpp:411–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 return { x + rhs.x, y + rhs.y };
410 };
411 vec_2d operator/(double scalar) const
412 {
413 double scalar_d = static_cast<double>(scalar);
414 return { x / scalar_d, y / scalar_d };
415 };
416 vec_2d operator/(std::size_t scalar) const
417 {
418 return *this / static_cast<double>(scalar);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected