Project

General

Profile

« Previous | Next » 

Revision 10a842b0

Added by Leszek Koltunski over 1 year ago

Progress with the Camouflage 3x3x3.
Now only proper scrambling remains.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyBandagedCuboid.java
508 508
///////////////////////////////////////////////////////////////////////////////////////////////////
509 509
// PUBLIC API
510 510

  
511
  public float[] getDist3D(int[] numLayers)
512
    {
513
    float x = numLayers[0];
514
    float y = numLayers[1];
515
    float z = numLayers[2];
516
    float a = (x+y+z)/1.5f;
517

  
518
    return new float[] {x/a,x/a,y/a,y/a,z/a,z/a};
519
    }
520

  
521
///////////////////////////////////////////////////////////////////////////////////////////////////
522

  
511 523
  public float getStickerRadius()
512 524
    {
513 525
    return 0.10f;

Also available in: Unified diff