示例#1
0
 public bool Intersects(RectangleF other)
 {
     return this.Left <= other.Right && other.Left <= this.Right && this.Top <= other.Bottom && other.Top <= this.Bottom;
 }
示例#2
0
 public static RectangleF ToMeters(RectangleF pixels)
 {
     return new RectangleF(ToMeters(pixels.X), ToMeters(pixels.Y), ToMeters(pixels.Width), ToMeters(pixels.Height));
 }
示例#3
0
 public static RectangleF ToPixels(RectangleF meters)
 {
     return new RectangleF(ToPixels(meters.X), ToPixels(meters.Y), ToPixels(meters.Width), ToPixels(meters.Height));
 }
示例#4
0
 public Camera()
 {
     m_ScreenViewport = new RectangleF(0.0f, 0.0f, 820.0f, 460.0f);
     m_WorldViewport = new RectangleF(0.0f, 0.0f, 30.0f, 15.0f);
 }