League\Geotools\Coordinate\Ellipsoid::__construct PHP Method

__construct() public method

Create a new ellipsoid.
public __construct ( string $name, double $a, double $invF )
$name string The name of the ellipsoid to create.
$a double The semi-major axis (equatorial radius) in meters.
$invF double The inverse flattening.
    public function __construct($name, $a, $invF)
    {
        if (0.0 >= (double) $invF) {
            throw new InvalidArgumentException('The inverse flattening cannot be negative or equal to zero !');
        }
        $this->name = $name;
        $this->a = $a;
        $this->invF = $invF;
    }