Here you can find the source of rotatePoint(Point point, Point centerPoint, double angle)
public static void rotatePoint(Point point, Point centerPoint, double angle)
//package com.java2s; //License from project: Open Source License import java.awt.Point; import java.awt.geom.AffineTransform; public class Main { public static void rotatePoint(Point point, Point centerPoint, double angle) { AffineTransform t = AffineTransform.getRotateInstance(angle, centerPoint.x, centerPoint.y); t.transform(point, point);/*from w w w. j a v a 2s . co m*/ } }