for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PHPCoord.
*
* @author Doug Wright
*/
declare(strict_types=1);
namespace PHPCoord\CoordinateOperation;
use PHPCoord\UnitOfMeasure\Length\Length;
use PHPCoord\UnitOfMeasure\Length\Metre;
* A geocentric point w/out a CRS.
* @internal
class GeocentricValue
{
* @var Length
private $x;
private $y;
private $z;
public function __construct(Length $x, Length $y, Length $z)
$this->x = $x;
$this->y = $y;
$this->z = $z;
}
public function getX(): Metre
return $this->x->asMetres();
public function getY(): Metre
return $this->y->asMetres();
public function getZ(): Metre
return $this->z->asMetres();