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

Function cross_negative

src/fields.cpp:398–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398static inline bool cross_negative(direction a, direction b) {
399 if (a >= R) a = direction(a - 3);
400 if (b >= R) b = direction(b - 3);
401 return ((3 + b - a) % 3) == 2;
402}
403
404static inline direction cross(direction a, direction b) {
405 if (a == b) meep::abort("bug - cross expects different directions");

Callers 1

FOR_COMPONENTSFunction · 0.85

Calls 1

directionEnum · 0.85

Tested by

no test coverage detected