Libraryless. Click here for Pure Java version (3118L/17K).
1 | static DoublePt rotateClockwise_radians(double angle, double x, double y) { |
2 | double sin = sin(angle), cos = cos(angle); |
3 | ret doublePt(x*cos-y*sin, y*cos+x*sin); |
4 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1031975 |
Snippet name: | rotateClockwise_radians |
Eternal ID of this version: | #1031975/2 |
Text MD5: | 9defe6e556df86ed18904cae7ba7e5f4 |
Transpilation MD5: | fde18a6a93d76c50f4a8979ea08a686e |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-06 06:01:10 |
Source code size: | 167 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 179 / 247 |
Version history: | 1 change(s) |
Referenced in: | [show references] |