示例#1
0
        public double Angle(bool asDegrees = true)
        {
            var radians = Math.Atan(Slope.ToDouble());

            if (asDegrees)
            {
                var degrees = radians.ToDegrees();
                return(degrees < 0.0 ? 180.0 + degrees : degrees);
            }
            return(radians < 0.0 ? Math.PI + radians : radians);
        }