public function getOrdinateByAbscissa($x)
    {
        if ($this->isHorizontal()) {
            return $this->getPointA()->getOrdinate();
        }
        return (($this->getSlope() * $x) + $this->getYIntercept());
    }