Пример #1
0
 /// <summary>
 ///   Initializes start and end pie slice sides.
 /// </summary>
 /// <param name="startSideExists">
 ///   Does start side exists.
 /// </param>
 /// <param name="endSideExists">
 ///   Does end side exists.
 /// </param>
 private void InitializeSides(bool startSideExists, bool endSideExists) {
     if (startSideExists)
         m_startSide = new Quadrilateral(m_center, m_pointStart, m_pointStartBelow, m_centerBelow, m_sweepAngle != 180);
     else
         m_startSide = Quadrilateral.Empty;
     if (endSideExists)
         m_endSide = new Quadrilateral(m_center, m_pointEnd, m_pointEndBelow, m_centerBelow, m_sweepAngle != 180);
     else
         m_endSide = Quadrilateral.Empty;
 }
Пример #2
0
 /// <summary>
 ///   Initializes start and end pie slice sides.
 /// </summary>
 private void InitializeSides()
 {
     if (m_startAngle > 90 && m_startAngle < 270)
         m_startSide = new Quadrilateral(m_center, m_pointStart, m_pointStartBelow, m_centerBelow, m_sweepAngle != 180);
     else
         m_startSide = Quadrilateral.Empty;
     if (EndAngle > 270 || EndAngle < 90)
         m_endSide = new Quadrilateral(m_center, m_pointEnd, m_pointEndBelow, m_centerBelow, m_sweepAngle != 180);
     else
         m_endSide = Quadrilateral.Empty;
 }