public static Rotation90 rotateBy(this Rotation90 rotation, Rotation90 other) { int newRotation = (rotation.toInt() + other.toInt()) % 360; return((Rotation90)(newRotation / 90)); }
public static Rotation90 invert(this Rotation90 rotation) { int newRotation = 360 - rotation.toInt(); return((Rotation90)(newRotation / 90)); }
public static Rotation90 getRotation(this JSONTable table, string name, Rotation90 defaultValue) { int angle = table.getInt(name, defaultValue.toInt()); return((Rotation90)(angle / 90)); }