예제 #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
파일: Convert.cs 프로젝트: askjervold/limak
 public static RectangleF ToMeters(RectangleF pixels)
 {
     return new RectangleF(ToMeters(pixels.X), ToMeters(pixels.Y), ToMeters(pixels.Width), ToMeters(pixels.Height));
 }
예제 #3
0
파일: Convert.cs 프로젝트: askjervold/limak
 public static RectangleF ToPixels(RectangleF meters)
 {
     return new RectangleF(ToPixels(meters.X), ToPixels(meters.Y), ToPixels(meters.Width), ToPixels(meters.Height));
 }
예제 #4
0
파일: Camera.cs 프로젝트: askjervold/limak
 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);
 }