What number are you expecting, and what numbers are being printed?
It could help you out if you put a print statement before the first line to let you know what variable values are assigned: print(Direction.X, x, Direction.Y, y)
so you can see what the numbers are before the calculations.