hi there !
i'm new to haskell and new to diagrams.
my first question is if two "objects" of type Diagram B can be intersected at path level (substracted, joined, excluded)
a,b,c::Diagram B
a = circle 1
b = square 1 # translate (r2 (1,1))
c = a intersected b
/ resulting in a closed curve with two right edges and a bit of arc of circle
(mconcat , atop' seems to stack layers, maybe there is an option with them)
second question is about an gif animation
i don't want to dwell to much in to detail about how haskell does lazy evaluation
initially i believed it's the fault of my computer, than after upgrading with some ram and increasing the swap memory
the application takes more than 40 Gb of ram and after finnishing the reserved memory its get killed by the operating system
why using a function that contain - circle (sqrt (( i+3*de)^2 -12^2)) -seems to create this ?
and - circle ( i+3*de) works fine ?
one idea i have is because of some rounding error caused by Double type
new-function-without-rounding-errors :: Double->Diagram B
typing errors are not presents when compiled
maybe i'm not using the right approach
if it's caused by some obvious error how could i check the root cause .
what would be a hint/ path for resolving it ?