Here you can find the source of project(Point2D sourceLocation, double angle, double length)
public static Point2D project(Point2D sourceLocation, double angle, double length)
//package com.java2s; // This code is released under the RoboWiki Public Code Licence (RWPCL), datailed on: import java.awt.geom.*; public class Main { public static Point2D project(Point2D sourceLocation, double angle, double length) { return new Point2D.Double(sourceLocation.getX() + Math.sin(angle) * length, sourceLocation.getY() + Math.cos(angle) * length); }//from w ww . ja va 2s . com }