Exemplo n.º 1
0
 /**
  * @param int $x
  * @param int $y
  * @param int $z
  */
 public function __construct($x, $y, $z = 0)
 {
     parent::__construct($x, $y, $z, RefEll::grs80());
 }
Exemplo n.º 2
0
 public function testNoopTransformNewYork()
 {
     $LatLng = new LatLng(40.7127, -74.0059, 0, RefEll::grs80());
     $LatLngTrans = clone $LatLng;
     $LatLngTrans->transformDatum(RefEll::grs80(), 0, 0, 0, 0, 0, 0, 0);
     $this->assertEquals($LatLng->getLat(), $LatLngTrans->getLat(), 'Latitude transform failed');
     $this->assertEquals($LatLng->getLng(), $LatLngTrans->getLng(), 'Longitude transform failed');
 }