Exemplo n.º 1
0
        /// <summary>
        /// Compute the clockwise angle of the vector pointing from b to a
        /// </summary>
        /// <param name="a"></param>
        /// <param name="b"></param>
        /// <returns></returns>
        public static float AngleBetweenPoints(Vector2D a, Vector2D b)
        {
            Vector2D bToA = a - b;

            bToA.Normalize();
            return(bToA.ToAngle());
        }