First function/curve delimiting hatch
to the functions that define the borders of a hatched 2D region of
Baseline is the y value
of a straight horizontal border line of a hatch.
very technical attributes that a user will hardly ever use.
function objects of type
the hatch object
h := plot::Hatch(f1,
f2) stores references to the objects
These are text references (i.e., strings) by which the function objects
be identified, but not the function objects themselves.
Function1 refers to a curve of type
Function2 is the (optional) second border
function of a hatch. In the plot, the hatched area is bounded by the
two functions referred to by
Function2 is given,
refer to a function graph of type
Baseline is an alternative second delimiter
of a hatch. It defines a horizontal border line of the hatch with
may be animated.
We hatch the area between the functions and x2:
f1 := plot::Function2d(sqrt(x), x = 0..2, Color = RGB::Black): f2 := plot::Function2d(x^2, x = 0..2, Color = RGB::Blue): h := plot::Hatch(f1, f2): plot(f1, f2, h)
The references to the border functions are stored a strings
in the hatch object
Baseline serves as an alternative for the
special case of a constant border function. The
can be animated:
h := plot::Hatch(f1, sqrt(2)*a, a = 0 .. 1): h::Baseline
A (closed) curve of type
plot::Curve2d may be used as the boundary
of the hatch:
f1 := plot::Curve2d([sin(2*x), cos(3*x)], x = 0..2*PI, Color = RGB::Black): h := plot::Hatch(f1): h::Function1
delete f1, f2, h, c: