public MapRect(int x, int y, int width, int height, int minZ, int maxZ) { m_Start = new Point2D(x, y); m_End = new Point2D(x + width, y + height); m_MinZ = minZ; m_MaxZ = maxZ; }
public MapRect(Point2D start, Point2D end, int minZ, int maxZ) { m_Start = start; m_End = end; m_MinZ = minZ; m_MaxZ = maxZ; }
public bool Contains(Point2D p) { return (m_Start.m_X <= p.m_X && m_Start.m_Y <= p.m_Y && m_End.m_X > p.m_X && m_End.m_Y > p.m_Y); //return ( m_Start <= p && m_End > p ); }
public void Set(int x, int y, int width, int height) { m_Start = new Point2D(x, y); m_End = new Point2D(x + width, y + height); }
public Rectangle2D(int x, int y, int width, int height) { m_Start = new Point2D(x, y); m_End = new Point2D(x + width, y + height); }