Revision 47093bfd
Added by Leszek Koltunski about 8 years ago
src/main/java/org/distorted/examples/effects3d/Effects3DEffect.java | ||
---|---|---|
215 | 215 |
|
216 | 216 |
if( mSta1 !=null ) |
217 | 217 |
{ |
218 |
int f1 = (int)((mSta1.getX()*100)/100.0f);
|
|
218 |
float f1 = ((int)(mSta1.getX()*100))/100.0f;
|
|
219 | 219 |
text += " "+f1; |
220 | 220 |
} |
221 | 221 |
|
222 | 222 |
if( mSta3 !=null ) |
223 | 223 |
{ |
224 |
int f1 = (int)mSta3.getX();
|
|
225 |
int f2 = (int)mSta3.getY();
|
|
226 |
int f3 = (int)mSta3.getZ();
|
|
224 |
float f1 = ((int)(mSta3.getX()*100))/100.0f;
|
|
225 |
float f2 = ((int)(mSta3.getY()*100))/100.0f;
|
|
226 |
float f3 = ((int)(mSta3.getZ()*100))/100.0f;
|
|
227 | 227 |
text += " ("+f1+","+f2+","+f3+")"; |
228 | 228 |
} |
229 | 229 |
|
230 | 230 |
if( mSta5 !=null ) |
231 | 231 |
{ |
232 |
int f1 = (int)mSta5.getX();
|
|
233 |
int f2 = (int)mSta5.getY();
|
|
234 |
int f3 = (int)mSta5.getZ();
|
|
235 |
int f4 = (int)mSta5.getW();
|
|
236 |
int f5 = (int)mSta5.getV();
|
|
232 |
float f1 = ((int)(mSta5.getX()*100))/100.0f;
|
|
233 |
float f2 = ((int)(mSta5.getY()*100))/100.0f;
|
|
234 |
float f3 = ((int)(mSta5.getZ()*100))/100.0f;
|
|
235 |
float f4 = ((int)(mSta5.getW()*100))/100.0f;
|
|
236 |
float f5 = ((int)(mSta5.getV()*100))/100.0f;
|
|
237 | 237 |
text += " ("+f1+","+f2+","+f3+","+f4+","+f5+")"; |
238 | 238 |
} |
239 | 239 |
|
Also available in: Unified diff
Slight improvement to Effects3D