function getAngleCoords(angle, w, h){
    //to rads
    angle *= Math.PI/180;
    return [
        Math.cos(angle) * w/2 + w/2,