/ Published in: ActionScript 3
Expand |
Embed | Plain Text
/** *Spherical [r, q, j] Cartesian [x, y, z] *x = rsin qcos j *y = rsin qsin j *z = rcos q */ var x:Number = RADIUS * Math.sin( latitude ) * Math.cos( longitude ); var y:Number = RADIUS * Math.sin( latitude ) * Math.sin( longitude ); var z:Number = RADIUS * Math.cos( latitude );
You need to login to post a comment.
