Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
三角関数
// x = 底辺
// y = 対辺
// r = 斜辺
// radian = 底辺、斜辺間の角度(ラジアン)
var x = r * Math.cos(radian);
var y = r * Math.sin(radian);
var r = x / Math.cos(radian);
var r = y / Math.sin(radian);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment