home
 
 
 
Code
<?php
											 
											/*
												Code
												© Charles Chandler
												http://qdl.scs-inc.us/?top=11898
											*/
											 
											/*
												Given that the circumference of a soccer ball is 69 cm,
												this finds the radius, and then compares the size of the
												Sun to the sizes and orbital distances of the planets.
											*/
											define('kSoccerBallRad_m',  (69 / 100) / (2 * M_PI));
											$scale = kSoccerBallRad_m / ($solSys->sun->radius_km * 1000);
											$v['soc_diam'    ] = kSoccerBallRad_m * 2;
											$v['sun_diam'    ] = $solSys->sun->radius_km           * 1000 * $scale * 2;
											$v['mercury_diam'] = $solSys->mercury->radius_mean_km  * 1000 * $scale * 2;
											$v['mercury_orbt'] = $solSys->mercury->orbit_mean_km   * 1000 * $scale;
											$v['venus_diam'  ] = $solSys->venus->radius_mean_km    * 1000 * $scale * 2;
											$v['venus_orbt'  ] = $solSys->venus->orbit_mean_km     * 1000 * $scale;
											$v['earth_diam'  ] = $solSys->earth->radius_mean_km    * 1000 * $scale * 2;
											$v['earth_orbt'  ] = $solSys->earth->orbit_mean_km     * 1000 * $scale;
											$v['mars_diam'   ] = $solSys->mars->radius_mean_km     * 1000 * $scale * 2;
											$v['mars_orbt'   ] = $solSys->mars->orbit_mean_km      * 1000 * $scale;
											$v['jupiter_diam'] = $solSys->jupiter->radius_mean_km  * 1000 * $scale * 2;
											$v['jupiter_orbt'] = $solSys->jupiter->orbit_mean_km   * 1000 * $scale;
											$v['saturn_diam' ] = $solSys->saturn->radius_mean_km   * 1000 * $scale * 2;
											$v['saturn_orbt' ] = $solSys->saturn->orbit_mean_km    * 1000 * $scale;
											$v['uranus_diam' ] = $solSys->uranus->radius_mean_km   * 1000 * $scale * 2;
											$v['uranus_orbt' ] = $solSys->uranus->orbit_mean_km    * 1000 * $scale;
											$v['neptune_diam'] = $solSys->neptune->radius_mean_km  * 1000 * $scale * 2;
											$v['neptune_orbt'] = $solSys->neptune->orbit_mean_km   * 1000 * $scale;
											 
										?>

← PREV Powered by Quick Disclosure Lite
© 2010~2021 SCS-INC.US
UP ↑