Example #1
0
        /// <summary>
        /// Compare angles for two position elements
        /// </summary>
        /// <param name="a">ElementPosition1</param>
        /// <param name="b">ElementPosition1</param>
        /// <returns></returns>
        public static Int32 CompareAngle(ElementPositionData elementPosition1, ElementPositionData elementPosition2)
        {
            Double angle1 = (elementPosition1.StartAngle + elementPosition1.StopAngle) / 2;
            Double angle2 = (elementPosition2.StartAngle + elementPosition2.StopAngle) / 2;

            return angle1.CompareTo(angle2);
        }
Example #2
0
 /// <summary>
 /// Contains data for Positioning elements 
 /// </summary>
 /// <param name="m">ElementPosition</param>
 public ElementPositionData(ElementPositionData elementPosition)
 {
     Element = elementPosition.Element;
     StartAngle = elementPosition.StartAngle;
     StopAngle = elementPosition.StopAngle;
 }