Class Exponentiation
- java.lang.Object
-
- picasso.parser.language.ExpressionTreeNode
-
- picasso.parser.language.expressions.BinaryFunction
-
- picasso.parser.language.expressions.Exponentiation
-
- All Implemented Interfaces:
EvaluatableExpression
public class Exponentiation extends BinaryFunction
Represents the exponentiation operation in the Picasso language.
-
-
Field Summary
-
Fields inherited from class picasso.parser.language.ExpressionTreeNode
gelementsToValue
-
-
Constructor Summary
Constructors Constructor Description Exponentiation(ExpressionTreeNode param1, ExpressionTreeNode param2)Create a exponentiation operation that takes as a parameter the given expression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RGBColorevaluate(double x, double y)Evaluates this expression at the given x,y point by evaluating the exponentiation of the operation's parameter.-
Methods inherited from class picasso.parser.language.expressions.BinaryFunction
equals, toString
-
-
-
-
Constructor Detail
-
Exponentiation
public Exponentiation(ExpressionTreeNode param1, ExpressionTreeNode param2)
Create a exponentiation operation that takes as a parameter the given expression- Parameters:
param- the expression to exponentiate
-
-
Method Detail
-
evaluate
public RGBColor evaluate(double x, double y)
Evaluates this expression at the given x,y point by evaluating the exponentiation of the operation's parameter.- Specified by:
evaluatein interfaceEvaluatableExpression- Specified by:
evaluatein classExpressionTreeNode- Parameters:
x- the value of xy- the value of y- Returns:
- the color from evaluating the exponentiation of the expression's parameter
-
-