Representing a circle with bits
1 view (last 30 days)
Show older comments
I am having trouble with this question about data representation:
You are given the task of finding a representation for a circle in a drawing application. The circle is to be displayed on the screen, and the user can edit the location and the radius of the circle, both of which are expressed in units of pixels.
a) Specify a data representation for the circle, trying to minimize the number of bits required.
Any help would be amazing :)
2 Comments
Walter Roberson
on 27 Feb 2019
Are fractional pixels permitted for locations or radius ?
Are negative values permitted for locations? Negative is presumably not permitted for radius.
What is the largest location or radius that needs to be supported?
Answers (0)
See Also
Categories
Find more on Dynamic System Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!