//radian 夹角度数 如 Math.PI
const cosC = Math.cos(2 * Math.PI / 360 * radian);
// 第三边边长
C = Math.sqrt((width * width * 2) + (2 * width * cosC));
console.log(C)
js 等腰三角形已知腰长及其夹角求第三边长度
阅读 101
2023-02-14
//radian 夹角度数 如 Math.PI
const cosC = Math.cos(2 * Math.PI / 360 * radian);
// 第三边边长
C = Math.sqrt((width * width * 2) + (2 * width * cosC));
console.log(C)
相关推荐
精彩评论(0)