@@ -65,15 +65,15 @@ class Ellipsoid
6565 * @see http://en.wikipedia.org/wiki/Earth_radius
6666 * @see http://home.online.no/~sigurdhu/WGS84_Eng.html
6767 *
68- * @var double
68+ * @var float
6969 */
7070 protected $ a ;
7171
7272 /**
7373 * The inverse flattening.
7474 * @see http://home.online.no/~sigurdhu/WGS84_Eng.html
7575 *
76- * @var double
76+ * @var float
7777 */
7878 protected $ invF ;
7979
@@ -209,14 +209,14 @@ class Ellipsoid
209209 * Create a new ellipsoid.
210210 *
211211 * @param string $name The name of the ellipsoid to create.
212- * @param double $a The semi-major axis (equatorial radius) in meters.
213- * @param double $invF The inverse flattening.
212+ * @param float $a The semi-major axis (equatorial radius) in meters.
213+ * @param float $invF The inverse flattening.
214214 *
215215 * @throws InvalidArgumentException
216216 */
217217 public function __construct ($ name , $ a , $ invF )
218218 {
219- if (0.0 >= (double ) $ invF ) {
219+ if (0.0 >= (float ) $ invF ) {
220220 throw new InvalidArgumentException ('The inverse flattening cannot be negative or equal to zero ! ' );
221221 }
222222
@@ -294,43 +294,43 @@ public function getName()
294294 /**
295295 * Returns the semi-major axis (equatorial radius) in meters.
296296 *
297- * @return double
297+ * @return float
298298 */
299299 public function getA ()
300300 {
301- return (double ) $ this ->a ;
301+ return (float ) $ this ->a ;
302302 }
303303
304304 /**
305305 * Computes and returns the semi-minor axis (polar distance) in meters.
306306 * @see http://home.online.no/~sigurdhu/WGS84_Eng.html
307307 *
308- * @return double
308+ * @return float
309309 */
310310 public function getB ()
311311 {
312- return (double ) $ this ->a * (1 - 1 / $ this ->invF );
312+ return (float ) $ this ->a * (1 - 1 / $ this ->invF );
313313 }
314314
315315 /**
316316 * Returns the inverse flattening.
317317 *
318- * @return double
318+ * @return float
319319 */
320320 public function getInvF ()
321321 {
322- return (double ) $ this ->invF ;
322+ return (float ) $ this ->invF ;
323323 }
324324
325325 /**
326326 * Computes and returns the arithmetic mean radius in meters.
327327 * @see http://home.online.no/~sigurdhu/WGS84_Eng.html
328328 *
329- * @return double
329+ * @return float
330330 */
331331 public function getArithmeticMeanRadius ()
332332 {
333- return (double ) $ this ->a * (1 - 1 / $ this ->invF / 3 );
333+ return (float ) $ this ->a * (1 - 1 / $ this ->invF / 3 );
334334 }
335335
336336 /**
0 commit comments