             m_dDirection = 270;
                    } else {
                        if (dy >= 0) {
                            da = Math.abs(dx / dy);
                            m_dDirection = (Math.atan(da) * 180) / Math.PI;
                            m_dDirection = 360 - m_dDirection;
                        } else {
                            da = Math.abs(dx / dy);
                            m_dDirection = (Math.atan(da) * 180) / Math.PI;
                            m_dDirection = 180 + m_dDirecti