ExplicitFunc2d
ABSTRACT
Generates a 2D explicit function mesh based on specified parameters.
REMARK
I generally find it better to use ColorGrid and PointMapped to create explicit 2d functions. Its a bit more of a hassle, but you get more control on the overall coloring (and can technically do non rectangular domains). Also check out EmbedinSpace for easy use of transforming from axes coordinates to global coordinates
PARAMETERS
x_min | Minimum x-value for the function's domain |
x_max | Maximum x-value for the function's domain |
y_min | Minimum y-value for the function's domain |
y_max | Maximum y-value for the function's domain |
x_min | Minimum x-value for the function's domain |
x_max | Maximum x-value for the function's domain |
y_min | Minimum y-value for the function's domain |
y_max | Maximum y-value for the function's domain |
x_step | Step size for the x-coordinate |
y_step | Step size for the y-coordinate |
f(x,y) | The function f(x, y) that defines the 2D explicit function. The inputs are the x and y values, and the output is a scalar. |
tag | A vector of numbers used as the mesh's tag |
stroke | A 4-vector representing the color of the stroke |
fill | A 4-vector representing the color of the fill |
RETURN
Generates a 2D mesh representing the specified function over the given domain
DECLARATION
func ExplicitFunc2d([points] {[main] {x_min, x_max, y_min, y_max}, [step] {x_min, x_max, y_min, y_max, x_step, y_step}}, f(x,y), tag, stroke, fill)