Revision 1585ba24
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/earth/EarthSurfaceViewPicker.java | ||
---|---|---|
195 | 195 |
mPointsY.add( (int)(MULTIPLIER*yf) ); |
196 | 196 |
mPointsE.add(mCurrentEffect.ordinal()); |
197 | 197 |
|
198 |
mAct.get().addNewPoint(xf,yf,mCurrentEffect); |
|
198 |
float longitude = (float)((xf-0.5f)*2.0f*Math.PI); |
|
199 |
float latitude = (float)((yf-0.5f)*Math.PI); |
|
200 |
|
|
201 |
mAct.get().addNewPoint(longitude,latitude,mCurrentEffect); |
|
199 | 202 |
} |
200 | 203 |
|
201 | 204 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Make the Fragment effects truly 3D: change their 4D 'region' into a 3D 'center' (a point in 3D) and 3D 'region' (which is now a set of 3 radii defining an ellipsoid around the center)
Also corresponding changes to the applications.