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

4
LINES

< > BotCompany Repo | #1034081 // ptMinus

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

Libraryless. Click here for Pure Java version (97L/1K).

static Pt ptMinus(Pt a, Pt b) {
  if (b == null) ret a;
  ret new Pt(a.x-b.x, a.y-b.y);
}

Author comment

Began life as a copy of #1009861

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034081
Snippet name: ptMinus
Eternal ID of this version: #1034081/1
Text MD5: f44a3240a777f7af5a258c2afe76c225
Transpilation MD5: 66355a2b72865d4636354faff0ef123c
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-21 04:45:13
Source code size: 92 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 91 / 358
Referenced in: [show references]