Exemplo n.º 1
0
        /// <summary>
        ///     Converts the angle of the line to Geographic Rotation.
        /// </summary>
        /// <param name="source">The source.</param>
        /// <returns>Returns a <see cref="double" /> representing the angle.</returns>
        public static double GetGeographicAngle(this IPolyline source)
        {
            if (source == null)
            {
                return(0);
            }

            ILine line = new LineClass();

            line.PutCoords(source.FromPoint, source.ToPoint);
            return(line.GetGeographicAngle());
        }