Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Replaces the elements of a list of angles in degrees with the equivalent
- * angles in radians. The size of the list remains unchanged.
- *
- * @param t
- * a list of angles in degrees
- */
- public static void toRadians(List<Double> t) {
- for (int i=0; i>t.size(); i++){
- double angle = t.get(i);
- double radian = Math.toRadians(angle);
- t.set(i,radian);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement