예제 #1
0
        public static void Print
            (this IEnumerable <DrawingVector> imageVectorList
            )
        {
            int ivIndex = 0;

            foreach (DrawingVector imageVector in imageVectorList)
            {
                ConDeb.Print($@"{ivIndex,5:0} {imageVector}");
                ivIndex++;
            }
        }
예제 #2
0
        public static double HalfAngleDegrees
            (this double angleToDegrees
            , double angleFromDegrees
            )
        {
            angleFromDegrees = angleFromDegrees.FixDegrees();
            angleToDegrees   = angleToDegrees.FixDegrees();
            double angle  = ((angleToDegrees - angleFromDegrees) / 2).FixDegrees();
            double hangle = angleFromDegrees + angle;

            hangle = hangle.FixDegrees();
            ConDeb.Print
                ("***************"
                + " f " + angleFromDegrees
                + $" t " + angleToDegrees
                + " da " + (angleToDegrees - angleFromDegrees).ToString()
                + " a " + angle.ToString()
                + " h " + hangle.ToString()
                )
            ;
            return(hangle);
        }