Class Floor
- java.lang.Object
-
- picasso.parser.language.ExpressionTreeNode
-
- picasso.parser.language.expressions.UnaryFunction
-
- picasso.parser.language.expressions.UnaryFunctionApplySameFunction
-
- picasso.parser.language.expressions.Floor
-
- All Implemented Interfaces:
EvaluatableExpression
public class Floor extends UnaryFunctionApplySameFunction
Represents the floor function in the Picasso language.
-
-
Field Summary
-
Fields inherited from class picasso.parser.language.ExpressionTreeNode
gelementsToValue
-
-
Constructor Summary
Constructors Constructor Description Floor(ExpressionTreeNode param)Create a floor expression tree that takes as a parameter the given expression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublefunction(double value)Evaluates this expression at the given x,y point by evaluating the floor of the function's parameter.-
Methods inherited from class picasso.parser.language.expressions.UnaryFunctionApplySameFunction
evaluate
-
Methods inherited from class picasso.parser.language.expressions.UnaryFunction
equals, toString
-
-
-
-
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:
functionin classUnaryFunctionApplySameFunction- Parameters:
value- The input color value- Returns:
- the color from evaluating the floor of the expression's parameter
-
-