protected float HeadingToRad(D3DXVECTOR2 from, D3DXVECTOR2 to) { return (float)Math.Atan2((to.x - from.x), (to.y - from.y)); }