Libraryless. Click here for Pure Java version (9203L/51K).
1 | static double areaRoot(Rect r) { |
2 | ret r == null ? 0 : sqrt(area(r)); |
3 | } |
4 | |
5 | static double areaRoot(DoubleRect r) { |
6 | ret r == null ? 0 : sqrt(area(r)); |
7 | } |
8 | |
9 | ifclass WidthAndHeight |
10 | static double areaRoot(WidthAndHeight img) { |
11 | ret img == null ? 0 : sqrt(area(img)); |
12 | } |
13 | endif |
14 | |
15 | static double areaRoot(BufferedImage img) { |
16 | ret img == null ? 0 : sqrt(area(img)); |
17 | } |
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: | 114 / 168 |
Version history: | 2 change(s) |
Referenced in: | [show references] |