예제 #1
0
파일: Math.php 프로젝트: folkevil/geokit
 /**
  * @param  mixed  $latLngOrBounds
  * @param  mixed  $distance       (in meters)
  * @return Bounds
  */
 public function shrink($latLngOrBounds, $distance)
 {
     return $this->transformBounds($latLngOrBounds, -Distance::normalize($distance)->meters());
 }
예제 #2
0
 public function testNormalizeShouldThrowExceptionForInvalidInput()
 {
     $this->setExpectedException('\\InvalidArgumentException');
     Distance::normalize('1000foo');
 }