Java examples for java.lang:Math Geometry
rotate Point
//package com.java2s; 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);// w ww . j a v a 2 s. c o m } }