海伦公式

来源:互联网 发布:cs1.6 for mac 10.11 编辑:程序博客网 时间:2024/04/28 10:31

已知三角形三条边长度为a,b,c

三角形面积为:sqrt( p(p-a)(p-b)(p-c) )

p = (a+b+c)/2