Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
Dir Dir::rotate(int n) const
29
{
30
return rotations[asInt() * 8 + (n & 7)];
31
}
32
33
34
/*
Callers
2
random8
Method · 0.80
unitTestBasicTypes
Function · 0.80
Calls
no outgoing calls
Tested by
1
unitTestBasicTypes
Function · 0.64