/** * @param null|\Maths\PointInterface $point_o * @param null|int $radius * @param int $space_type */ public function __construct(PointInterface $point_o = null, $radius = null, $space_type = Maths::CARTESIAN_2D) { parent::__construct($space_type); if (!is_null($point_o)) { $this->setPointO($point_o); } if (!is_null($radius)) { $this->setRadius($radius); } }
/** * @param null|\Maths\PointInterface $point_a * @param null|\Maths\PointInterface $point_b * @param int $space_type */ public function __construct(PointInterface $point_a = null, PointInterface $point_b = null, $space_type = Maths::CARTESIAN_2D) { parent::__construct($space_type); if (!is_null($point_a)) { $this->setPointA($point_a); } if (!is_null($point_b)) { $this->setPointB($point_b); } }