¡@

Home 

2014/10/16 ¤W¤È 08:11:34

android Programming Glossary: cosalpha1

Spinning globe in Opengl-es

http://stackoverflow.com/questions/3811082/spinning-globe-in-opengl-es

alpha1 i 1 2 Math.PI slices float cosAlpha0 float Math.cos alpha0 float sinAlpha0 float Math.sin alpha0 float cosAlpha1 float Math.cos alpha1 float sinAlpha1 float Math.sin alpha1 for int j 0 j stacks j double beta j Math.PI stacks Math.PI.. float cosBeta float Math.cos beta float sinBeta float Math.sin beta Utils.setXYZ vertexCoords 6 j radius cosBeta cosAlpha1 radius sinBeta radius cosBeta sinAlpha1 Utils.setXYZ vertexCoords 6 j 3 radius cosBeta cosAlpha0 radius sinBeta.. j 3 radius cosBeta cosAlpha0 radius sinBeta radius cosBeta sinAlpha0 Utils.setXYZ normalCoords 6 j cosBeta cosAlpha1 sinBeta cosBeta sinAlpha1 Utils.setXYZ normalCoords 6 j 3 cosBeta cosAlpha0 sinBeta cosBeta sinAlpha0 ..