FreeRaider wrote:Out of curiosity: can you explain me why you use in [Meter2] the number 4 in X and Y position?
Code: Select all
X=((0.93*#Radius#)*(1+sin(2*4*PI/#Num#))+(0.07*#Radius#))
Y=((0.93*#Radius#)*(1+cos(2*4*PI/#Num#))+(0.07*#Radius#))
The [Meter2] is showing the number 2 onto the clock face. The position of this meter is calculated using the sinus function (for the X coordinate) and respectively the cosinus function (for the Y coordinate). On these formulas the 4/#Num# report represents the percent of the angle in the center of the circle, associated with the position of the number 2, from the whole 2*PI (which is the entire circle). Multiplying this percent with 2*PI, we'll get the angle where the number 2 must sit, in raport to the 0 position. Just note that in the position of the angle 0, is placed the number 6, which has in its formulas the 2*12*PI/#Num# expression. This last expression is in fact equal with 2*PI, because the value of the Num variable is 12 (because we have 12 numbers on the face of the clock), but from the point of view of the meters position, this is the same as 0 (sinus and cosinus being periodic functions, their values are repeating with a period of 2*PI). Then the number used to calculate the position of the number 5, is 1, that used to calculate the position of the number 4, is 2 and so on. And that's why the number used to calculated the position of the number 2, is 4.
I'm not sure I could explain this in the best terms, but I hope you understood. However if you didn't or have any other question about the functions I've used, please let me know.