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

7
LINES

< > BotCompany Repo | #1031985 // pt_iround

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

Libraryless. Click here for Pure Java version (7914L/44K).

static Pt pt_iround(double x, double y) {
  ret Pt(iround(x), iround(y));
}

static Pt pt_iround(IDoublePt p) {
  ret p == null ?: pt_iround(p.x_double(), p.y_double());
}

Author comment

Began life as a copy of #1009514

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031985
Snippet name: pt_iround
Eternal ID of this version: #1031985/3
Text MD5: ceef35b4e26e91e58a67e4191efa529d
Transpilation MD5: 0cf93138115e48547ae67114eb239973
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-02 20:31:11
Source code size: 177 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 169 / 252
Version history: 2 change(s)
Referenced in: [show references]