-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could you please support ellipse? #36
Comments
I second that; having ellipse (and perhaps a rectangle) would be very useful! |
I think we can get ellipse by transform a circle by affine matrix. |
@mathedu4all , transform circle gives ellipse in mathematics, but unfortunately not in this library. |
I'm not sure, but if implementing ellipses, it might make sense to try to support arbitrary conics. At least, I think a lot of the math is similar between them, and other conics can be useful to work with. (For example, parabolas come up naturally in some computational geometry like the medial axis.) Even within ellipses, it could be nice to support arbitrary rotation (two foci not necessarily horizontally or vertically aligned). I agree that this is a nontrivial task, but maybe we can aim for it someday. 😅 Then again, axis-aligned ellipses are directly supported by SVG, so maybe that should be the first goal. |
I agree, it would be great to support all conic curves, maybe not in the scope of this library. |
hi alexbol99!
I use flatten-js in my project to draw window and door. it works very well right now.
but I need to draw ellipse window. could you please support ellipse
The text was updated successfully, but these errors were encountered: