コード例 #1
0
 public virtual bool Intersects(LNNode node)
 {
     float[] nodePos = node.ConvertToWorldPos();
     return((this._visible) &&
            (node._visible) &&
            (pos[0] + GetWidth() >= nodePos[0] &&
             pos[0] <= nodePos[0] + node.GetWidth() &&
             pos[1] + GetWidth() >= nodePos[1] && pos[1] <= nodePos[1]
             + node.GetHeight()));
 }