Revision 00057bb1
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/objectlib/tablebases/TablebasesAbstract.java | ||
---|---|---|
124 | 124 |
} |
125 | 125 |
} |
126 | 126 |
|
127 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
128 |
|
|
129 |
private int computeRowFromBitmap(int rowBitmap) |
|
130 |
{ |
|
131 |
int index = 0; |
|
132 |
|
|
133 |
while(index<32) |
|
134 |
{ |
|
135 |
if( (rowBitmap&0x1) != 0 ) return index; |
|
136 |
rowBitmap>>=1; |
|
137 |
index++; |
|
138 |
} |
|
139 |
return 0; |
|
140 |
} |
|
141 |
|
|
142 | 127 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
143 | 128 |
|
144 | 129 |
private int computeRow(float[] pos, int quat, int axisIndex) |
... | ... | |
483 | 468 |
{ |
484 | 469 |
int[] source = sol[solDepth-1-i]; |
485 | 470 |
scramble[i][0] = source[0]; |
486 |
scramble[i][1] = computeRowFromBitmap(source[1]);
|
|
471 |
scramble[i][1] = source[1];
|
|
487 | 472 |
scramble[i][2] =-source[2]; |
488 | 473 |
} |
489 | 474 |
} |
Also available in: Unified diff
Make it possible to return rowBitmaps from ObjectScrambler (rather than single rows)