System.Drawing.PieChart.PieSlice.CreatePathForCylinderSurfaceSection C# (CSharp) Method

CreatePathForCylinderSurfaceSection() private method

Creates GraphicsPath for cylinder surface section. This path consists of two arcs and two vertical lines.
private CreatePathForCylinderSurfaceSection ( float startAngle, float endAngle, PointF pointStart, PointF pointEnd ) : GraphicsPath
startAngle float /// Starting angle of the surface. ///
endAngle float /// Ending angle of the surface. ///
pointStart System.Drawing.PointF /// Starting point on the cylinder surface. ///
pointEnd System.Drawing.PointF /// Ending point on the cylinder surface. ///
return System.Drawing.Drawing2D.GraphicsPath
        private GraphicsPath CreatePathForCylinderSurfaceSection(float startAngle, float endAngle, PointF pointStart, PointF pointEnd)
        {
            GraphicsPath path = new GraphicsPath();
            path.AddArc(m_boundingRectangle, startAngle, endAngle - startAngle);
            path.AddLine(pointEnd.X, pointEnd.Y, pointEnd.X, pointEnd.Y + m_sliceHeight);
            path.AddArc(m_boundingRectangle.X, m_boundingRectangle.Y + m_sliceHeight, m_boundingRectangle.Width, m_boundingRectangle.Height, endAngle, startAngle - endAngle);
            path.AddLine(pointStart.X, pointStart.Y + m_sliceHeight, pointStart.X, pointStart.Y);
            return path;
        }