Пример #1
0
 /**
  * Test if the quadrilateral is a parallelogram
  *
  * @return  bool
  */
 public function isParallelogram()
 {
     $centerdiag1 = $this->getFirstDiagonal();
     $centerdiag2 = $this->getSecondDiagonal();
     return (bool) Maths::areSamePoint($centerdiag1->getCenter(), $centerdiag2->getCenter());
 }
Пример #2
0
 /**
  * Test if a vector is null : [~0] = [A==B]
  *
  * @return  bool
  */
 public function isNull()
 {
     return (bool) Maths::areSamePoint($this->getPointA(), $this->getPointB());
 }