src/Maths/Geometry/Segment.php
public function getLength()
    {
        return sqrt(
            pow(($this->getPointB()->getAbscissa() - $this->getPointA()->getAbscissa()), 2)
            +
            pow(($this->getPointB()->getOrdinate() - $this->getPointA()->getOrdinate()), 2)
        );
    }
public function getLength()
    {
        return sqrt(
            pow(($this->getPointB()->getAbscissa() - $this->getPointA()->getAbscissa()), 2)
            +
            pow(($this->getPointB()->getOrdinate() - $this->getPointA()->getOrdinate()), 2)
        );
    }
Get the length of the segment

@return  float