Libraryless. Click here for Pure Java version (47L/1K).
1 | // angle between p2-p1 and the x axis (?) |
2 | static double twoPointAngle(IDoublePt p1, IDoublePt p2) { |
3 | ret atan2( |
4 | p2.x_double()-p1.x_double(), |
5 | p2.y_double()-p1.y_double()); |
6 | } |
Began life as a copy of #1034951
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035276 |
Snippet name: | twoPointAngle |
Eternal ID of this version: | #1035276/1 |
Text MD5: | bcb7eb11968a5ff8225cf9b65c8194f2 |
Transpilation MD5: | ad02d8019ab7bc995d02ce823a558a78 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-28 20:53:18 |
Source code size: | 186 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 136 / 190 |
Referenced in: | [show references] |