Revision 82e62580
Added by Leszek Koltunski over 3 years ago
| src/main/java/org/distorted/objectlib/objects/TwistySquare1.java | ||
|---|---|---|
| 33 | 33 |
|
| 34 | 34 |
public class TwistySquare1 extends TwistySquare |
| 35 | 35 |
{
|
| 36 |
private int[] mQuatNumber;
|
|
| 36 |
private int[] mQuatIndex;
|
|
| 37 | 37 |
private float[][] mCenters; |
| 38 | 38 |
|
| 39 | 39 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| ... | ... | |
| 96 | 96 |
|
| 97 | 97 |
public Static4D getCubitQuats(int cubit, int[] numLayers) |
| 98 | 98 |
{
|
| 99 |
if( mQuatNumber ==null )
|
|
| 99 |
if( mQuatIndex ==null )
|
|
| 100 | 100 |
{
|
| 101 |
mQuatNumber = new int[]
|
|
| 101 |
mQuatIndex = new int[]
|
|
| 102 | 102 |
{
|
| 103 | 103 |
0, 6, |
| 104 | 104 |
0, 9, 6, 3, 17, 14, 23, 20, |
| ... | ... | |
| 106 | 106 |
}; |
| 107 | 107 |
} |
| 108 | 108 |
|
| 109 |
return mObjectQuats[mQuatNumber[cubit]];
|
|
| 109 |
return mObjectQuats[mQuatIndex[cubit]];
|
|
| 110 | 110 |
} |
| 111 | 111 |
|
| 112 | 112 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with cubit quaternions.