src/Maths/Geometry/Line.php
public function getOrdinateByAbscissa($x)
    {
        if ($this->isHorizontal()) {
            return $this->getPointA()->getOrdinate();
        }
        return (($this->getSlope() * $x) + $this->getYIntercept());
    }
public function getOrdinateByAbscissa($x)
    {
        if ($this->isHorizontal()) {
            return $this->getPointA()->getOrdinate();
        }
        return (($this->getSlope() * $x) + $this->getYIntercept());
    }
Get the ordinate of a point of the line by its abscissa

@param   float   $x
@return  float