Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1018720 // pointOutsideOfImage

JavaX fragment (include)

sbool pointOutsideOfImage(BufferedImage img, Pt p) {
  ret p.x < 0 || p.y < 0 || p.x >= img.getWidth() || p.y >= img.getHeight();
}

Author comment

Began life as a copy of #1018719

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018720
Snippet name: pointOutsideOfImage
Eternal ID of this version: #1018720/1
Text MD5: 4a575b37fc56c98d2f2d6f8fcfd9b288
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-11 21:10:48
Source code size: 133 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 317
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)