MCPcopy Create free account
hub / github.com/davidrmiller/biosim4 / rotate

Method rotate

src/basicTypes.cpp:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 NE, E, SE, S, SW, W, NW, N };
27
28Dir Dir::rotate(int n) const
29{
30 return rotations[asInt() * 8 + (n & 7)];
31}
32
33
34/*

Callers 2

random8Method · 0.80
unitTestBasicTypesFunction · 0.80

Calls

no outgoing calls

Tested by 1

unitTestBasicTypesFunction · 0.64