Libraryless. Click here for Pure Java version (9098L/51K).
1 | static double aspectRatio(WidthAndHeight etc img) {
|
2 | ret img == null ? Double.NaN : doubleRatio(img.getWidth(), img.getHeight()); |
3 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034854 |
| Snippet name: | aspectRatio |
| Eternal ID of this version: | #1034854/2 |
| Text MD5: | 28d87148baa2446a7b2c05ffa5fde075 |
| Transpilation MD5: | b5ddadf9f9a003993488e26a5613da59 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-05-26 21:52:18 |
| Source code size: | 134 bytes / 3 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 398 / 522 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |