{"action":"created","issue":{"url":"https://api.github.com/repos/okamstudio/godot/issues/2260","labels_url":"https://api.github.com/repos/okamstudio/godot/issues/2260/labels{/name}","comments_url":"https://api.github.com/repos/okamstudio/godot/issues/2260/comments","events_url":"https://api.github.com/repos/okamstudio/godot/issues/2260/events","html_url":"https://github.com/okamstudio/godot/pull/2260","id":94476571,"number":2260,"title":"Bug #2241 : atan2() function and Vector2 method inconsistent x,y / y,x parameters fix","user":{"login":"StraToN","id":1289207,"avatar_url":"https://avatars.githubusercontent.com/u/1289207?v=3","gravatar_id":"","url":"https://api.github.com/users/StraToN","html_url":"https://github.com/StraToN","followers_url":"https://api.github.com/users/StraToN/followers","following_url":"https://api.github.com/users/StraToN/following{/other_user}","gists_url":"https://api.github.com/users/StraToN/gists{/gist_id}","starred_url":"https://api.github.com/users/StraToN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StraToN/subscriptions","organizations_url":"https://api.github.com/users/StraToN/orgs","repos_url":"https://api.github.com/users/StraToN/repos","events_url":"https://api.github.com/users/StraToN/events{/privacy}","received_events_url":"https://api.github.com/users/StraToN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2015-07-11T14:06:56Z","updated_at":"2015-09-24T05:59:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/okamstudio/godot/pulls/2260","html_url":"https://github.com/okamstudio/godot/pull/2260","diff_url":"https://github.com/okamstudio/godot/pull/2260.diff","patch_url":"https://github.com/okamstudio/godot/pull/2260.patch"},"body":"- fixed Vector2.atan2()\r\n- fixed atan2(x,y) -> atan2(y,x)\r\nWARNING : this fix may provoke many atan2(x,y) uses elsewhere to work badly"},"comment":{"url":"https://api.github.com/repos/okamstudio/godot/issues/comments/142819262","html_url":"https://github.com/okamstudio/godot/pull/2260#issuecomment-142819262","issue_url":"https://api.github.com/repos/okamstudio/godot/issues/2260","id":142819262,"user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T05:59:53Z","updated_at":"2015-09-24T05:59:53Z","body":"> Using atan(x,y) is way easier to visualize because it just goes like a clock, so all code in Godot assumes it this way, including the function to get the angle.\r\n\r\nThis definitely needs to be better documented then. For me it's way more natural when doing mathematical operations on vectors to have angles counted counter-clockwise from Vector2(1,0). I could expect helper functions like \"angle\" to behave otherwise, but I would expect anything labelled as \"Math\" to behave like the math we learn in school."}}