MathFunction.Pi Class
Pi
Constructor
MathFunction.Pi
()
Item Index
Methods
evaluate
(
-
var_list
Parameters:
-
var_list
Objectmap of variable names to values or MathFunctions
Returns:
the value of the function
parenthesizeForPrint
(
Boolean
protected
-
f
Parameters:
Returns:
Boolean:
true if f needs to parenthesize us
parenthesizeForRender
(
Boolean
protected
-
f
Parameters:
Returns:
Boolean:
true if f needs to parenthesize us
prepareToRender
(
Int
-
canvas
-
top_left
-
font_size
-
rect_list
Add the layout information for this object and its descendants to rect_list.
Parameters:
-
canvas
MathCanvasthe drawing canvas
-
top_left
Pointx,y coordinates of the top left of the bounding box
-
font_size
Floatpercentage of the base font size
-
rect_list
RectListlayout information
Returns:
Int:
index of this items info in rect_list
render
(
-
canvas
-
rect_list
Draw this object and its descendants.
Parameters:
-
canvas
MathCanvasthe drawing canvas
-
rect_list
RectListlayout information
toString
()
Returns:
text representation of the function