Exemple #1
0
 public bool Intersects(RectangleF other)
 {
     return this.Left <= other.Right && other.Left <= this.Right && this.Top <= other.Bottom && other.Top <= this.Bottom;
 }
Exemple #2
0
 public static RectangleF ToMeters(RectangleF pixels)
 {
     return new RectangleF(ToMeters(pixels.X), ToMeters(pixels.Y), ToMeters(pixels.Width), ToMeters(pixels.Height));
 }
Exemple #3
0
 public static RectangleF ToPixels(RectangleF meters)
 {
     return new RectangleF(ToPixels(meters.X), ToPixels(meters.Y), ToPixels(meters.Width), ToPixels(meters.Height));
 }
Exemple #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);
 }