Example #1
0
 public Orthotope2Double(Vector2Double start, Vector2Double end)
 {
     this.rangeX = new OrderedRange <double>(start.X, end.X);
     this.rangeY = new OrderedRange <double>(start.Y, end.Y);
 }
Example #2
0
 public bool Contains(Vector2Double vector)
 {
     return(rangeX.Contains(vector.X) && rangeY.Contains(vector.Y));
 }
Example #3
0
 public static Orthotope2Double CreateFromCenter(Vector2Double center, Vector2Double size)
 {
     return(new Orthotope2Double(center - 0.5 * size, center + 0.5 * size));
 }