Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,289 Members 36,385 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Change start-point of analog clock & calculate [ar]

Tip us?
 
bvt-1
Old
#1  
bvt-1's Avatar
Senior Member - OP
Thanks Meter 605
Posts: 793
Join Date: Jun 2011
Location: Hannover
Question [Q] Change start-point of analog clock & calculate [ar]

Hello,

I want to create a analog clock, but 12 o`clock shouldn`t begin on the top, it should start with 12 o`clock at the point of 2 o`clock
(sorry, my english is awful)

So, the starting point should be at 20 degrees, because the background is distorted.

Now I have

[r] $(360/60*#dm#)$ [/r]
$#dm#>360?((360/60*#dm#+20)-360)360/60*#dm#+20)$

What is wrong? Doesn`t work

And is there a possibility to calculate the value of [ar] ---> my rectangle (clock hand) is 34 high ...

Thx an d Greets
 
aamtini
Old
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jun 2010
+1
 
expinox
Old
#3  
Junior Member
Thanks Meter 14
Posts: 20
Join Date: Nov 2011
Quote:
Originally Posted by bvt-1 View Post
Hello,

I want to create a analog clock, but 12 o`clock shouldn`t begin on the top, it should start with 12 o`clock at the point of 2 o`clock
(sorry, my english is awful)

So, the starting point should be at 20 degrees, because the background is distorted.

Now I have

[r] $(360/60*#dm#)$ [/r]
$#dm#>360?((360/60*#dm#+20)-360)360/60*#dm#+20)$

What is wrong? Doesn`t work

And is there a possibility to calculate the value of [ar] ---> my rectangle (clock hand) is 34 high ...

Thx an d Greets
But.......2 o'clock is 60 degrees.....

Try this

[r] $(60+(360/60*#dm#))$ [/r]

Inviato dal mio GT-N7000 con Tapatalk 2
The Following User Says Thank You to expinox For This Useful Post: [ Click to Expand ]
 
bvt-1
Old
#4  
bvt-1's Avatar
Senior Member - OP
Thanks Meter 605
Posts: 793
Join Date: Jun 2011
Location: Hannover
Great, works :thumbup::thumbup:
Many many thanks :thumbup:

And did you know,,how to calculate [ar] ?

... oOo ...
 
expinox
Old
(Last edited by expinox; 9th May 2014 at 08:42 PM.)
#5  
Junior Member
Thanks Meter 14
Posts: 20
Join Date: Nov 2011
Quote:
Originally Posted by bvt-1 View Post
Great, works :thumbup::thumbup:
Many many thanks :thumbup:

And did you know,,how to calculate [ar] ?

... oOo ...
Mmm...... [ar] work with [as], for [as] you can use the same formula, and for [ar] use simply, for example, 5, 10, 15 or -5, -10, -15 or other valute ( without $ ), try different.

Inviato dal mio GT-N7000 con Tapatalk 2
The Following User Says Thank You to expinox For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes