You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now rect is implemented by scaling a unitSquare, but if given zero as an argument that scaling will not have a valid inverse. This shows up later as a NaN with doubles. Semantically a rect with zero is fine, however, as a line or four lines, depending on how we want to go about it.
Right now
rect
is implemented by scaling aunitSquare
, but if given zero as an argument that scaling will not have a valid inverse. This shows up later as aNaN
with doubles. Semantically arect
with zero is fine, however, as a line or four lines, depending on how we want to go about it.Ryan
Sönke Hahn wrote:
Hi!
Is this wanted behaviour?
Prelude> import Diagrams.Prelude
Prelude Diagrams.Prelude> import Diagrams.Backend.Cairo
Prelude Diagrams.Prelude Diagrams.Backend.Cairo> size2D (rect 0 10 ::
QDiagram Cairo R2 Any)
[snip]
Loading package diagrams-cairo-0.5.0.2 ... linking ... done.
(NaN,NaN)
I would have expected (0, 10).
Thanks,
Sönke
The text was updated successfully, but these errors were encountered: