/** * Create a point from two or three values * * @param mixed $x * @param mixed $y * @param mixed $z * * @return \Converter\Geo\Point */ public static function factory($x, $y, $z = null) { $point = new self(); $point->setX($x)->setY($y)->setZ($z); return $point; }