Beispiel #1
0
 /// <param name="circle">The full circle this wedge is a part of.</param>
 /// <param name="degreeRange">The range of degrees this wedge covers.</param>
 public WWedge(WCircle circle, WRangeCircular degreeRange) : base(circle.Center, degreeRange)
 {
     Radius = circle.Radius;
 }
Beispiel #2
0
 /// <summary></summary>
 public WWedgeUnbound(WPoint center, WRangeCircular degreeRange)
 {
     Center  = center;
     Degrees = degreeRange;
 }
Beispiel #3
0
 /// <summary></summary>
 public WWedgeUnbound(WPoint center, double degreesRangeStart, double degreesRangeEnd)
 {
     Center  = center;
     Degrees = new WRangeCircular(degreesRangeStart, degreesRangeEnd, WCircle.DEGREES_IN_CIRCLE);
 }
Beispiel #4
0
 /// <summary>Returns true if this range overlaps range <paramref name='b'/>.</summary>
 public bool Overlaps(WRangeCircular b)
 {
     return(this.Overlaps(b.Start) || this.Overlaps(b.End) || b.Overlaps(this.Start) || b.Overlaps(this.End));
 }