MCPcopy Create free account
hub / github.com/NanoComp/meep / diameter

Method diameter

src/vec.cpp:196–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196double volume::diameter() const {
197 double diam = 0.0;
198 LOOP_OVER_DIRECTIONS(dim, d) { diam = std::max(diam, in_direction(d)); }
199 return diam;
200}
201
202volume volume::intersect_with(const volume &a) const {
203 if (a.dim != dim) meep::abort("Can't intersect volumes of dissimilar dimensions.\n");

Callers 2

fallback_chi1inv_rowMethod · 0.80
normal_vectorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected