/** * 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()); }
/** * Test if a vector is null : [~0] = [A==B] * * @return bool */ public function isNull() { return (bool) Maths::areSamePoint($this->getPointA(), $this->getPointB()); }