Revision beee90ab
Added by Leszek Koltunski over 3 years ago
| src/main/java/org/distorted/objectlib/objects/TwistyMinx.java | ||
|---|---|---|
| 57 | 57 |
new Static3D( SIN54/LEN, 0 , -C2/LEN ) |
| 58 | 58 |
}; |
| 59 | 59 |
|
| 60 |
private int[] mBasicAngle; |
|
| 60 |
private int[][] mBasicAngle;
|
|
| 61 | 61 |
private float[][] mCuts; |
| 62 | 62 |
float[][] mCenterCoords,mCorners; |
| 63 | 63 |
int[] mQuatEdgeIndices,mQuatCornerIndices; |
| ... | ... | |
| 489 | 489 |
|
| 490 | 490 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 491 | 491 |
|
| 492 |
public int[] getBasicAngles() |
|
| 492 |
public int[][] getBasicAngles()
|
|
| 493 | 493 |
{
|
| 494 |
if( mBasicAngle ==null ) mBasicAngle = new int[] { 5,5,5,5,5,5 };
|
|
| 494 |
if( mBasicAngle ==null ) |
|
| 495 |
{
|
|
| 496 |
int num = getNumLayers()[0]; |
|
| 497 |
int[] tmp = new int[num]; |
|
| 498 |
for(int i=0; i<num; i++) tmp[i] = 5; |
|
| 499 |
mBasicAngle = new int[][] { tmp,tmp,tmp,tmp,tmp,tmp };
|
|
| 500 |
} |
|
| 501 |
|
|
| 495 | 502 |
return mBasicAngle; |
| 496 | 503 |
} |
| 497 | 504 |
} |
Also available in: Unified diff
Preparation for Mixup Cube: take advantage of the recent bump in MAJOR_VERSION number and change the format of basicAngles to int[][] 'per-axis-per-layer' [ Mixup Cube has different basicAngle in its middle layers (8) - and different in its edge layers (4) ]