Class Floor

    • Constructor Detail

      • Floor

        public Floor​(ExpressionTreeNode param)
        Create a floor expression tree that takes as a parameter the given expression
        Parameters:
        param - the expression to floor
    • Method Detail

      • function

        public double function​(double value)
        Evaluates this expression at the given x,y point by evaluating the floor of the function's parameter.
        Specified by:
        function in class UnaryFunctionApplySameFunction
        Parameters:
        value - The input color value
        Returns:
        the color from evaluating the floor of the expression's parameter