rmozel Posted March 6, 2017 Report Posted March 6, 2017 Hi, I am new to uGFX. In my application, I need to rotate the wire or filled ellipse axes by a given angle. Is there a simple way to do this without delving into implementation details of the ellipse function? Regards, Renan
Joel Bodenmann Posted March 6, 2017 Report Posted March 6, 2017 Hello Renan, That is not easily possible with what the current version of µGFX has to offer. You either have to use your own algorithm to achieve that or you resort back to bitmaps (or full blown images).
inmarket Posted March 6, 2017 Report Posted March 6, 2017 No. The ellipse is currently xy axis only for code size and complexity reasons. You could estimate it with line segments and then use the matrix 2d rotation api and then gsispDrawPoly but that is just an elipse approximation.
rmozel Posted March 6, 2017 Author Report Posted March 6, 2017 Thank you all for your prompt responses. My intend was to display the error ellipse of a 2D covariance matrix. I understood that pressing on this will lead unnecessarily complex and possibly resource heavy floating point operations. So, I will take a different approach to represent this information on the display. Regards.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now