Revision 3c621722
Added by Leszek Koltunski almost 5 years ago
| src/main/java/org/distorted/objects/TwistyMinx.java | ||
|---|---|---|
| 47 | 47 |
static final float C2 = (SQ5+3)/4; |
| 48 | 48 |
static final float LEN= (float)(Math.sqrt(1.25f+0.5f*SQ5)); |
| 49 | 49 |
|
| 50 |
// the six rotation axis of a RubikMegaminx. Must be normalized.
|
|
| 50 |
// the six rotation axis of a RubikMinx. Must be normalized. |
|
| 51 | 51 |
static final Static3D[] ROT_AXIS = new Static3D[] |
| 52 | 52 |
{
|
| 53 | 53 |
new Static3D( C2/LEN, C1/LEN, 0 ), |
| ... | ... | |
| 78 | 78 |
MINX_DBLUE , MINX_DYELLOW, MINX_WHITE , MINX_GREY |
| 79 | 79 |
}; |
| 80 | 80 |
|
| 81 |
// All 60 legal rotation quats of a RubikMegaminx
|
|
| 81 |
// All 60 legal rotation quats of a RubikMinx |
|
| 82 | 82 |
private static final Static4D[] QUATS = new Static4D[] |
| 83 | 83 |
{
|
| 84 | 84 |
new Static4D( 0.0f, 0.0f, 0.0f, 1.0f ), |
| ... | ... | |
| 413 | 413 |
} |
| 414 | 414 |
|
| 415 | 415 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 416 |
// only needed for solvers - there are no Ivy solvers ATM)
|
|
| 416 |
// only needed for solvers - there are no Minx solvers ATM)
|
|
| 417 | 417 |
|
| 418 | 418 |
public String retObjectString() |
| 419 | 419 |
{
|
Also available in: Unified diff
Minor.