mitsusdev Member Licensed User Longtime User Oct 24, 2012 #1 Hi all, i've a question about pixel coordinates. I've draw a circle (Activity is canvas), then how do i find coordinates of pixels (x,y) that are on circumference? Thanks a lot and Best Regards
Hi all, i've a question about pixel coordinates. I've draw a circle (Activity is canvas), then how do i find coordinates of pixels (x,y) that are on circumference? Thanks a lot and Best Regards
thedesolatesoul Expert Licensed User Longtime User Oct 24, 2012 #2 x = r * cos(angle) y = r * sin(angle) where r = radius (constant) angle = 0 to 360 iterate through angle to get values of (x,y) at the granularity required Upvote 0
x = r * cos(angle) y = r * sin(angle) where r = radius (constant) angle = 0 to 360 iterate through angle to get values of (x,y) at the granularity required
mitsusdev Member Licensed User Longtime User Oct 24, 2012 #3 thedesolatesoul said: x = r * cos(angle) y = r * sin(angle) where r = radius (constant) angle = 0 to 360 iterate through angle to get values of (x,y) at the granularity required Click to expand... Thank a lot thedesolatesoul....in fact I had not thought about the mathematical formula. Reagards Upvote 0
thedesolatesoul said: x = r * cos(angle) y = r * sin(angle) where r = radius (constant) angle = 0 to 360 iterate through angle to get values of (x,y) at the granularity required Click to expand... Thank a lot thedesolatesoul....in fact I had not thought about the mathematical formula. Reagards