Пример #1
0
 /**
  * Write a circle like `[(Ax,Ay),(Bx,By),(Cx,Cy)]`
  *
  * @return  string
  */
 public function __toString()
 {
     return Maths::polygonToString($this->is3D() ? array($this->getPointA()->x, $this->getPointA()->y, $this->getPointA()->z) : array($this->getPointA()->x, $this->getPointA()->y), $this->is3D() ? array($this->getPointB()->x, $this->getPointB()->y, $this->getPointB()->z) : array($this->getPointB()->x, $this->getPointB()->y), $this->is3D() ? array($this->getPointC()->x, $this->getPointC()->y, $this->getPointC()->z) : array($this->getPointC()->x, $this->getPointC()->y));
 }