@bob its difficult to understand this logic m short of time can you pls
give me android specific project or class file that will be appreciated
thanks
On Tuesday, 4 December 2012 00:11:18 UTC+5:30, bob wrote:
>
> You will want to see the source code to the GIMP's polar coordinate filter.
>
>
> Here's a little bit:
>
>
> if (pcvals.polrec)
>
> {
>
> if (wx >= cen_x)
>
> {
>
> if (wy > cen_y)
>
> {
>
> phi = G_PI - atan (((double)(wx - cen_x))/
>
> ((double)(wy - cen_y)));
>
> }
>
> else if (wy < cen_y)
>
> {
>
> phi = atan (((double)(wx - cen_x))/((double)(cen_y - wy)));
>
> }
>
> else
>
> {
>
> phi = G_PI / 2;
>
> }
>
> }
>
> else if (wx < cen_x)
>
> {
>
> if (wy < cen_y)
>
> {
>
> phi = 2 * G_PI - atan (((double)(cen_x -wx)) /
>
> ((double)(cen_y - wy)));
>
> }
>
> else if (wy > cen_y)
>
> {
>
> phi = G_PI + atan (((double)(cen_x - wx))/
>
> ((double)(wy - cen_y)));
>
> }
>
> else
>
> {
>
> phi = 1.5 * G_PI;
>
> }
>
> }
>
>
> r = sqrt (SQR (wx - cen_x) + SQR (wy - cen_y));
>
> On Monday, December 3, 2012 11:49:20 AM UTC-6, djhacktor wrote:
>>
>> thank for reply can you give me some sample code it will be great help
>>
>> On Monday, 3 December 2012 21:06:28 UTC+5:30, bob wrote:
>>>
>>> Here's a sample of how it might
>>> look:<https://lh5.googleusercontent.com/-JcHGjFm_o5M/ULzG2CfgerI/AAAAAAAAAJM/xaBMEZoV3og/s1600/polar3.png>
>>>
>>>
>>> On Monday, December 3, 2012 12:15:23 AM UTC-6, djhacktor wrote:
>>>>
>>>> Hi can any one tell me how to make seek bar in circular shape ?? is
>>>> there any example ??
>>>
>>>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en