{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2331","repository_url":"https://api.github.com/repos/w3c/csswg-drafts","labels_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2331/labels{/name}","comments_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2331/comments","events_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2331/events","html_url":"https://github.com/w3c/csswg-drafts/issues/2331","id":298029010,"number":2331,"title":"[css-values] Trigonometric functions","user":{"login":"LeaVerou","id":175836,"avatar_url":"https://avatars1.githubusercontent.com/u/175836?v=4","gravatar_id":"","url":"https://api.github.com/users/LeaVerou","html_url":"https://github.com/LeaVerou","followers_url":"https://api.github.com/users/LeaVerou/followers","following_url":"https://api.github.com/users/LeaVerou/following{/other_user}","gists_url":"https://api.github.com/users/LeaVerou/gists{/gist_id}","starred_url":"https://api.github.com/users/LeaVerou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeaVerou/subscriptions","organizations_url":"https://api.github.com/users/LeaVerou/orgs","repos_url":"https://api.github.com/users/LeaVerou/repos","events_url":"https://api.github.com/users/LeaVerou/events{/privacy}","received_events_url":"https://api.github.com/users/LeaVerou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-17T19:17:05Z","updated_at":"2018-02-19T16:38:55Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I keep stumbling on use cases that need trigonometric functions to be solved, and I always have to resort to JS or a preprocessor for them, which is a pain. Basically almost any time you need to match two things and angles are involved.\r\n\r\nSadly I couldn't find most of my use cases, but here are two: \r\n\r\n- https://codepen.io/leaverou/pen/JpyZMO - cos, atan (via JS)\r\n- [play.csssecrets.io/folded-corner-realistic](http://play.csssecrets.io/folded-corner-realistic) — sin, cos (precomputed)\r\n\r\nAlso the following use sqrt (precomputed), but would need trigonometry in the general case :\r\n\r\n- [play.csssecrets.io/inner-rounding](http://play.csssecrets.io/inner-rounding)\r\n- [play.csssecrets.io/diamond-images](http://play.csssecrets.io/diamond-images)\r\n- [play.csssecrets.io/bevel-corners](http://play.csssecrets.io/bevel-corners)\r\n- [play.csssecrets.io/folded-corner](http://play.csssecrets.io/folded-corner)\r\n\r\n(credits: @MeFoDy for collecting these from my book)\r\n\r\nWhat do you think? Can we make it happen?"},"comment":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/comments/366745609","html_url":"https://github.com/w3c/csswg-drafts/issues/2331#issuecomment-366745609","issue_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2331","id":366745609,"user":{"login":"Crissov","id":6200185,"avatar_url":"https://avatars0.githubusercontent.com/u/6200185?v=4","gravatar_id":"","url":"https://api.github.com/users/Crissov","html_url":"https://github.com/Crissov","followers_url":"https://api.github.com/users/Crissov/followers","following_url":"https://api.github.com/users/Crissov/following{/other_user}","gists_url":"https://api.github.com/users/Crissov/gists{/gist_id}","starred_url":"https://api.github.com/users/Crissov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crissov/subscriptions","organizations_url":"https://api.github.com/users/Crissov/orgs","repos_url":"https://api.github.com/users/Crissov/repos","events_url":"https://api.github.com/users/Crissov/events{/privacy}","received_events_url":"https://api.github.com/users/Crissov/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T16:38:55Z","updated_at":"2018-02-19T16:38:55Z","author_association":"NONE","body":"Which exact functions are proposed here? `sin()`, `cos()`, `tan()`, `arcsin()`, `arccos()`, `arctan()`,  …? \n\nSeveral programming languages distinguish two arcus tangens functions: `atan()` with a single parameter and `atan2()` with two parameters. \n\n(A generic (square) root `sqrt()` or exponent `exp()` or power `pow()` function or a specific _square root of two_ constant deserves its own issue.)"}}
{"actor":{"display_login":"Crissov"}}