Fix getX / getY utitity to work with 0

(was interpreting 0 as falsy)
Implement rotation