DataLab-Platform / DataLab

Open-source Platform for Scientific and Technical Data Processing and Visualization
https://datalab-platform.com
BSD 3-Clause "New" or "Revised" License
37 stars 4 forks source link

Circle and ellipse result shapes are not transformed properly #57

Closed PierreRaybaut closed 6 months ago

PierreRaybaut commented 6 months ago

This is a regression introduced with commit 2b1116b which as a fix for Issue #32.

The transformation (rotation, flip, etc.) is applied on circle/ellipse coordinates as if they were still Cartesian coordinates of the X diameter (for the circle) or the X/Y diameters (for the ellipse). However, since 2b1116b, the coordinates of those results shapes are stored internally as (x, y, r) for circles and (x, y, a, b, theta) for ellipses.