someone tell me whats wrong with this formula

dumyvarX = (int)(dumyvarX * Math.cos(radiansZ) - dumyvarY * Math.sin(radiansZ) ); dumyvarY = (int)(dumyvarY * Math.cos(radiansZ) + dumyvarX * Math.sin(radiansZ) ); thanks in advance it does every thing except make my point go in a circle
[273 byte] By [xlightwavex] at [2007-9-26 1:36:58]
# 1

This will generate the points for a circle.

double radius = 50;

int shiftX = 100;

int shiftY = 100;

for (float i = 0; i < 2 * Math.PI; i += 0.05f) {

int x = (int) Math.round(radius * Math.cos(i) + shiftX);

int y = (int) Math.round(radius * Math.sin(i) + shiftY);

// ...

}

7rst at 2007-6-29 2:23:09 > top of Java-index,Security,Cryptography...