/** * Rotate the {@link PointList} about the given origin with the given angle * (in radians) * * @param origin * the origin of the rotation * @param angle * the angle in radians */ public void rotate(Point2d origin, double angle) { for (final Point2d p : points) rotate(p, origin, angle); }
/** * Rotate the {@link PointList} about (0,0) with the given angle (in * radians) * * @param angle * the angle in radians */ public void rotate(double angle) { this.rotate(new Point2dImpl(0, 0), angle); }
toAlign.rotate(this.referenceCog, theta);