Hi I am so frustrated I can't work this out.. it has been a while since I've done much math.
I have a start time (sunrise) and an end time (sunset).
I have an arm that needs to move between 0 and 180 degrees as the time elapses throughout the day to represent the sun moving through the sky.
Say for example the total time between sunrise and sunset is 720 mins
I need to calculate how many degrees I need to move every minute to make the arm sweep between 0 and 180 degrees so that at 720 mins it has moved fully from 0 - 180 degrees.
I thought it would be something like get the mins elapsed since sunrise and the mins remaining until sunset and then doing something to reduce them between 0 and 180 with division.
Sorry I'd appreciate some help
I have a start time (sunrise) and an end time (sunset).
I have an arm that needs to move between 0 and 180 degrees as the time elapses throughout the day to represent the sun moving through the sky.
Say for example the total time between sunrise and sunset is 720 mins
I need to calculate how many degrees I need to move every minute to make the arm sweep between 0 and 180 degrees so that at 720 mins it has moved fully from 0 - 180 degrees.
I thought it would be something like get the mins elapsed since sunrise and the mins remaining until sunset and then doing something to reduce them between 0 and 180 with division.
Sorry I'd appreciate some help