/** * Sets the right ascension and declination of this instance * * @param Time $ra Right ascension * @param Angle $dec Declination * @return static */ public function setPosition(Time $ra, Angle $dec) { $this->ra = $ra->setUnit('hms'); $this->dec = $dec; return $this; }