MCPcopy Index your code
hub / github.com/MeigenChou/DCTimer-Android / oriToIdx

Method oriToIdx

app/src/main/java/solver/Utils.java:166–172  ·  view source on GitHub ↗
(int[] orientation, int length, boolean zeroSum)

Source from the content-addressed store, hash-verified

164
165 // orientation
166 public static int oriToIdx(int[] orientation, int length, boolean zeroSum) {
167 int index = 0;
168 if (zeroSum) length--;
169 for (int i = 0; i < length; i++)
170 index = 3 * index + (orientation[i] % 3);
171 return index;
172 }
173
174 public static void idxToOri(int[] orientation, int index, int length, boolean zeroSum) {
175 int sum = 0;

Callers 14

initMethod · 0.95
scrambleL2LMethod · 0.95
GearClass · 0.95
CubeRUClass · 0.95
gettwsmvMethod · 0.95
scrambleEGMethod · 0.95
scramblePBLMethod · 0.95
scrambleTCLLMethod · 0.95
scrambleTEG1Method · 0.95
scrambleTEG2Method · 0.95
initMethod · 0.95
initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected