Revision a4af26c1
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyAxis.java | ||
---|---|---|
206 | 206 |
|
207 | 207 |
public Static4D getCubitQuats(int cubit, int[] numLayers) |
208 | 208 |
{ |
209 |
if( mQuatIndex==null ) mQuatIndex = new int[] {0,22,10,17,14,19, 0,22,10,17,14,19, 0,22,10, 0,22,10, 0,14, 0,14,10,19,17,22 }; |
|
209 |
if( mQuatIndex==null ) |
|
210 |
{ |
|
211 |
mQuatIndex = new int[] { 0,22,10,17,14,19, |
|
212 |
0,22,10,17,14,19, |
|
213 |
0,22,10, |
|
214 |
0,22,10, |
|
215 |
0,14, |
|
216 |
0,14,10,19,17,22 |
|
217 |
}; |
|
218 |
} |
|
210 | 219 |
return mObjectQuats[mQuatIndex[cubit]]; |
211 | 220 |
} |
212 | 221 |
|
Also available in: Unified diff
Progress with cubit quaternions.