src/Maths/Geometry/Triangle.php
public function isEquilateral()
    {
        return (bool) (
            ($this->getSegmentAB()->getLength() == $this->getSegmentBC()->getLength()) &&
            ($this->getSegmentAB()->getLength() == $this->getSegmentCA()->getLength())
        );
    }
public function isEquilateral()
    {
        return (bool) (
            ($this->getSegmentAB()->getLength() == $this->getSegmentBC()->getLength()) &&
            ($this->getSegmentAB()->getLength() == $this->getSegmentCA()->getLength())
        );
    }
Test if a triangle is equilateral : [AB] = [BC] = [CA]

@return  bool