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