2
* To change this template, choose Tools | Templates
3
* and open the template in the editor.
8
import adastra.engine.Location;
14
public class CrazyMath {
16
public static Location circularDisplacement(int mag, double degrees){
17
degrees = Math.toRadians(degrees);
18
double x = mag* Math.sin(degrees);
19
double y = - mag* Math.cos(degrees);
20
return new Location(null,(int)x,(int)y);