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

17
LINES

< > BotCompany Repo | #1035614 // areaRoot - square root of area

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9203L/51K).

static double areaRoot(Rect r) {
  ret r == null ? 0 : sqrt(area(r));
}

static double areaRoot(DoubleRect r) {
  ret r == null ? 0 : sqrt(area(r));
}

ifclass WidthAndHeight
static double areaRoot(WidthAndHeight img) {
  ret img == null ? 0 : sqrt(area(img));
}
endif

static double areaRoot(BufferedImage img) {
  ret img == null ? 0 : sqrt(area(img));
}

Author comment

Began life as a copy of #1032160

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035614
Snippet name: areaRoot - square root of area
Eternal ID of this version: #1035614/3
Text MD5: 7cefab3d18144da4cce08a72e1884806
Transpilation MD5: 3249b7c7846dd2d8ba645fab806c5a25
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-19 20:37:48
Source code size: 372 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 115 / 168
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1035642 - intAreaRoot - square root of area, rounded