I am hoping the community can help and provide some direction. I would like to achieve this without any other plugins by using standard GH math functions so I can see what is happening.
I have a circle divided into 196 points and I would like to:
A) tag each point with a reference 0 thru 195 (already done)
B) tag each reference point (0-195) with another tag showing the decimal degree as measured from 0 -1, 0-2, 0-3 and so on thru to 0-195 in a clockwise direction - is there a quick to do this instead of isolating the two points each time as I have attempted in the definition?
C) tag each reference point (0-195) with the corresponding degree, minute and second.
So far I have measured the decimal angle between points 0 and 1 which is 1.836733 degrees.
Question part 1: Is there a way to split the decimal “1.836733” into two parts. One part would be the integer number, in this case “1” and the second part would be the fractional number, in this case “0.836733”.
From there I can then calculate for “minutes” by multiplying the fractional number (0.836733) by 60.
This would result in “50.203956” minutes.
I would then split the number again into the integer and fractional remainder of “0.203956” to solve for seconds by multiplying “0.203956” by 60.
I would like to get all that info above (decimal degree, degree minutes and seconds) tagged to the relevant point.
Since this is a circle, why bother measuring Vec2Pt angles? You know that each angle will be the same (360 / number of points). Like this:
Converting these fractional degrees to minutes and seconds is simple math… Padding single digit numbers with a leading zero and displaying the tags in a radial pattern is extra work. This can probably be simplified.