x / dy);
                            m_dDirection = (Math.atan(da) * 180) / Math.PI;
                        } else {
                            if (dy < 0) {
                                da = Math.abs(dx / dy);
                                m_dDirection = (Math.atan(da) * 180) / Math.PI;
                                m_dDirection = 180 - m_dDirection;
                            }
                        }
                    }
                } else {
                    if (dy == 0) {
           