title: what is the coding logic behind a gauge/ speedometer
body: <p>I am new to JavaFx/ GUI animation. I am trying to implement an analog meter in JavaFx. So far I have designed the FXML view which looks as shown below. </p>
  
  <p><img src="https://i.stack.imgur.com/Da5au.png" alt="Analog meter"></p>
  
  <p>Now I wanted the pointer to rotate with respect to the input value (say to 0.5 in my case). Since it is a design/ vector drawing, I believe it is only possible to rotate the pointer to respective degrees (say 30 deg that corresponds to 0.5). Is this the logic behind all the GUI meters or anything else exists? If this is the logic, then would anyone let me know the formula/ equation that does this? I mean converting decimal numerical values to degrees? Would JavaFx take into account minutes/ seconds in the rotate function as well?</p>