Class Tan
- java.lang.Object
-
- picasso.parser.language.ExpressionTreeNode
-
- picasso.parser.language.expressions.UnaryFunction
-
- picasso.parser.language.expressions.Tan
-
- All Implemented Interfaces:
EvaluatableExpression
public class Tan extends UnaryFunction
Represents the tan function in the Picasso language.
-
-
Field Summary
-
Fields inherited from class picasso.parser.language.ExpressionTreeNode
gelementsToValue
-
-
Constructor Summary
Constructors Constructor Description Tan(ExpressionTreeNode param)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RGBColor
evaluate(double x, double y)
Evaluates this expression at the given x,y point by evaluating the tan of the function's parameter.-
Methods inherited from class picasso.parser.language.expressions.UnaryFunction
equals, toString
-
-
-
-
Constructor Detail
-
Tan
public Tan(ExpressionTreeNode param)
-
-
Method Detail
-
evaluate
public RGBColor evaluate(double x, double y)
Evaluates this expression at the given x,y point by evaluating the tan of the function's parameter.- Specified by:
evaluate
in interfaceEvaluatableExpression
- Specified by:
evaluate
in classExpressionTreeNode
- Parameters:
x
- the value of xy
- the value of y- Returns:
- the color from evaluating the floor of the expression's parameter
-
-