Libraryless. Click here for Pure Java version (47L/1K).
// angle between p2-p1 and the x axis (?) static double twoPointAngle(IDoublePt p1, IDoublePt p2) { ret atan2( p2.x_double()-p1.x_double(), p2.y_double()-p1.y_double()); }
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: | 137 / 191 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |