Project

General

Profile

« Previous | Next » 

Revision f988589e

Added by Leszek Koltunski almost 8 years ago

Further reduce the distortedObject's API - now only 26 methods, 1/4 of the 104 before the reorganization.

View differences:

src/main/java/org/distorted/examples/cubes/CubesRenderer.java
105 105
        float factor = (float)height/(mRows*SIZE);
106 106

  
107 107
        mCubes.move( new Static3D((width-w)/2,0,0) );
108
        mCubes.scale( new Static3D(factor,factor,factor) );
108
        mCubes.scale(factor);
109 109
        }  
110 110
      else
111 111
        {   
......
113 113
        float factor = (float)width/(mCols*SIZE);
114 114

  
115 115
        mCubes.move( new Static3D(0,(height-h)/2,0) );
116
        mCubes.scale( new Static3D(factor,factor,factor) );
116
        mCubes.scale(factor);
117 117
        }
118 118
    
119 119
      Static3D center = new Static3D(mCols*SIZE/2,mRows*SIZE/2, 0);

Also available in: Unified diff