Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. /**
  2. * Replaces the elements of a list of angles in degrees with the equivalent
  3. * angles in radians. The size of the list remains unchanged.
  4. *
  5. * @param t
  6. * a list of angles in degrees
  7. */
  8. public static void toRadians(List<Double> t) {
  9. for (int i=0; i>t.size(); i++){
  10.  
  11. double angle = t.get(i);
  12. double radian = Math.toRadians(angle);
  13. t.set(i,radian);
  14. }
  15.  
  16.  
  17.  
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement