Java tutorial
//package com.java2s; public class Main { public static float[] position_on_circle(final float centerX, final float centerY, float pDegree, float pRadius) { double radian = (pDegree / 180) * Math.PI; float x = ((float) (centerX + Math.cos(radian) * pRadius));//-this.getWidth()/2; float y = ((float) (centerY - Math.sin(radian) * pRadius));//-this.getHeight()/2; return new float[] { x, y }; } }