MCPcopy Create free account
hub / github.com/SimHacker/micropolis / rotate90

Function rotate90

MicropolisCore/src/MicropolisEngine/src/position.h:123–126  ·  view source on GitHub ↗

* Rotate the direction by 90 degrees. * @param dir Direction to rotate. * @return Rotated direction. */

Source from the content-addressed store, hash-verified

121 * @return Rotated direction.
122 */
123static inline Direction2 rotate90(Direction2 dir)
124{
125 return rotate45(dir, 2);
126}
127
128/**
129 * Rotate the direction by 180 degrees.

Callers 1

tryGoMethod · 0.85

Calls 1

rotate45Function · 0.85

Tested by

no test coverage detected