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());
    }
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
Get the ordinate of a point of the line by its abscissa