} ?> >acres</option> <option value="hectares"<?php if ($from_unit == 'hectares') { echo " selected"; } ?> >hectares</option> </select> </div> <div class="entry"> <label>To:</label> <input type="text" name="to_value" value="<?php echo float_to_string($to_value); ?> " /> <select name="to_unit"> <option value="square_inches"<?php if ($to_unit == 'square_inches') { echo " selected"; } ?> >square inches</option> <option value="square_feet"<?php if ($to_unit == 'square_feet') { echo " selected"; } ?> >square feet</option>
h2("LatLngBounds class: maximum bounds in GMaps"); $bounds3 = new LatLngBounds(new LatLng(-85.051128779807, -180), new LatLng(85.051128779807, 180)); h3("Constructor (new LatLng(-85.051128779807, -180), new LatLng(85.051128779807, 180))"); p($bounds3->toString()); h3("getCenter()"); p($bounds3->getCenter()->toString()); h3("getSouthWest()"); p($bounds3->getSouthWest()->toString()); h3("getNorthEast()"); p($bounds3->getNorthEast()->toString()); h3('contains(moscow)'); p($bounds3->contains($moscow)); h3('contains(sydney)'); p($bounds3->contains($sydney)); h3('contains(buenosaires)'); p($bounds3->contains($buenosaires)); h2('Spherical geometry static class'); h3('computeArea(london, donostia, newyork)'); p(float_to_string(SphericalGeometry::computeArea(array($london, $donostia, $newyork)))); h3('computeSignedArea(london, donostia, newyork)'); p(float_to_string(SphericalGeometry::computeSignedArea(array($london, $donostia, $newyork)))); h3('computeDistanceBetween(london, newyork)'); p(float_to_string(SphericalGeometry::computeDistanceBetween($london, $newyork))); h3('computeHeading(london, newyork)'); p(float_to_string(SphericalGeometry::computeHeading($london, $newyork))); h3('computeLength(london, newyork, moscow, sydney)'); p(float_to_string(SphericalGeometry::computeLength(array($london, $newyork, $moscow, $sydney)))); h3('computeOffset(london, 5576353.232683, -71.669371)'); p(SphericalGeometry::computeOffset($london, 5576353.232683, -71.669371)->toString()); h3('interpolate(newyork, sydney, 0.7)'); p(SphericalGeometry::interpolate($newyork, $sydney, 0.7)->toString());