예제 #1
0
 /// <summary>
 /// convert D2dArcSegment to SharpDX.ArcSegment.</summary>
 internal static ArcSegment ToSharpDX(this D2dArcSegment arc)
 {
     return(new ArcSegment
     {
         Point = arc.Point.ToSharpDX(),
         Size = arc.Size.ToSharpDX(),
         RotationAngle = arc.RotationAngle,
         ArcSize = (ArcSize)arc.ArcSize,
         SweepDirection = (SweepDirection)arc.SweepDirection
     });
 }
예제 #2
0
 /// <summary>
 /// Adds arc to the current path</summary>
 /// <param name="arc">Arc to add</param>
 public void AddArc(D2dArcSegment arc)
 {
     m_sink.AddArc(arc.ToSharpDX());
 }
예제 #3
0
 public void AddArc(D2dArcSegment arc)
 {
     m_sink.AddArc(arc.ToSharpDX());
 }