Here you can find the source of polarToPoint(double angle, double fx, double fy)
public static Point polarToPoint(double angle, double fx, double fy)
//package com.java2s; //License from project: Open Source License import java.awt.*; public class Main { public static Point polarToPoint(double angle, double fx, double fy) { double si = Math.sin(angle); double co = Math.cos(angle); return new Point((int) (fx * co + 0.5D), (int) (fy * si + 0.5D)); }/*from w w w.j a va 2 s . com*/ }