Thanks for all your help!
[code]
public static PlanarPoint negVertex (PlanarPoint c, double alpha, double r) {
double a = c.getX()-1*(r*Math.cos(alpha));
double b = c.getY()-1*(r*Math.sin(alpha));
PlanarPoint w = new PlanarPoint(a, b);
return w;
}
[code]
The code above solved the error! This is the code that was originally posted by me, but for some reason it threw an exception error. Now after creating the file again, it works.
I made an error saying that the brackets don't make any difference, but what I wanted to say was that I didn't notice any difference then after compiling, as the polygon was only still moving clockwise!
Anyway thanks for all the help!