已知三角形的三个边 求三角形的面积 -- 海伦公式

三角形的三个边为 float x,y,z 设一个变量p float p = (x+y+z)/2 三角形的面积为 sqrt(p*(p-x)*(p-y)*(p-z))
相关文章
相关标签/搜索