Class Y

    • Constructor Detail

      • Y

        public Y()
    • Method Detail

      • evaluate

        public RGBColor evaluate​(double x,
                                 double y)
        Returns the color represented by y. The value of x doesn't matter.
        Specified by:
        evaluate in interface EvaluatableExpression
        Specified by:
        evaluate in class ExpressionTreeNode
        Parameters:
        x - the value of x
        y - the value of y
        Returns:
        the result of evaluating the expression for the given values of x and y