Project

General

Profile

« Previous | Next » 

Revision 28b54fe3

Added by Leszek Koltunski over 3 years ago

Progress with Megaminx. Darken the RED color.

View differences:

src/main/java/org/distorted/objects/FactoryCubit.java
1313 1313
    float sinA = (2*SIN54*SIN54-1)/COS54;
1314 1314
    float cosA = (float)Math.sqrt(1-sinA*sinA);
1315 1315
    float LEN  = 0.5f/SIN54;
1316
    float scale= 2*SIN54*(0.5f-MEGA_D)/(0.5f*(numLayers-1));
1316
    float scale= (numLayers/6.0f-MEGA_D)/(LEN*0.5f*(numLayers-1));
1317 1317

  
1318 1318
    Static3D axisA = new Static3D( SIN54, COS54, 0.0f);
1319 1319
    Static3D axisB = new Static3D(-SIN54, COS54, 0.0f);

Also available in: Unified diff