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

4
LINES

< > BotCompany Repo | #1031975 // rotateClockwise_radians

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

Libraryless. Click here for Pure Java version (3118L/17K).

static DoublePt rotateClockwise_radians(double angle, double x, double y) {
  double sin = sin(angle), cos = cos(angle);
  ret doublePt(x*cos-y*sin, y*cos+x*sin);
}

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: 178 / 246
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)