Revision f988589e
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/examples/quaternion/QuaternionRenderer.java | ||
---|---|---|
101 | 101 |
{ |
102 | 102 |
float factor = height/(3.0f*SIZE); |
103 | 103 |
mCube.move( new Static3D((width-height)/2,0,0) ); |
104 |
mCube.scale( new Static3D(factor,factor,factor) );
|
|
104 |
mCube.scale(factor);
|
|
105 | 105 |
} |
106 | 106 |
else |
107 | 107 |
{ |
108 | 108 |
float factor = width/(3.0f*SIZE); |
109 | 109 |
mCube.move( new Static3D(0,(height-width)/2,0) ); |
110 |
mCube.scale( new Static3D(factor,factor,factor) );
|
|
110 |
mCube.scale(factor);
|
|
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
mCube.quaternion( new Static3D(3*SIZE/2,3*SIZE/2,0), mRot); |
Also available in: Unified diff
Further reduce the distortedObject's API - now only 26 methods, 1/4 of the 104 before the reorganization.