Project

General

Profile

« Previous | Next » 

Revision 3d8237cc

Added by Leszek Koltunski over 3 years ago

Progress with Megaminx.

View differences:

src/main/java/org/distorted/objects/FactoryCubit.java
1355 1355
    float sinA = (2*SIN54*SIN54-1)/COS54;
1356 1356
    float cosA = (float)Math.sqrt(1-sinA*sinA);
1357 1357
    float LEN  = 0.5f/SIN54;
1358
    float scale= (numLayers/6.0f-MEGA_D)/(LEN*0.5f*(numLayers-1));
1358
    float scale= (numLayers/3.0f)*(0.5f-MEGA_D)/(LEN*0.5f*(numLayers-1));
1359 1359

  
1360 1360
    Static3D axisA = new Static3D( SIN54, COS54, 0.0f);
1361 1361
    Static3D axisB = new Static3D(-SIN54, COS54, 0.0f);

Also available in: Unified diff