⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lprect.java

📁 一个很好的j2ms的元代码不是很专业的很适合初学者的哦
💻 JAVA
字号:
/**
 * <p>Title: lipeng</p>
 * <p>Description:
 * You cannot remove this copyright and notice.
 * You cannot use this file without the express permission of the author.
 * All Rights Reserved</p>
 * <p>Copyright: lizhenpeng (c) 2004</p>
 * <p>Company: LP&P</p>
 * @author lizhenpeng
 * @version 1.0.0
 * <p>
 * Revise History
 * </p>
 */

package lipeng;



public class LPRect
{
  public int x;
  public int y;
  public int dx;
  public int dy;
  public static boolean IntersectRect(LPRect rect1, LPRect rect2)
  {
    if ( (rect1.x + rect1.dx > rect2.x) && (rect1.y + rect1.dy > rect2.y)
        &&
        (rect2.x + rect2.dy > rect1.x) && (rect2.y + rect2.dy > rect1.y))
   {
     return true;
   }
   return false;

  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -