The ratio of the sides of the mesh triangle

I need to calculate the aspect ratio of a triangle. I have 3 points and therefore I have lengths and midpoints. I tried to use this tutorial (although it is not so much, in my opinion), but it is very vague and does not provide much information, Can someone develop, in particular, part of creating a rectangle, or even share some C ++ code to solve this problem?

James Solution:

double s = (a + b + c) / 2.0;
double AR = (a * b * c) / (8.0 * (s - a) * (s - b) * (s - c));

@James:

Cubit reports the following:

Function Name  Average      Std Dev      Minimum     Maximum
-------------  ---------    ---------    ---------   ---------
Aspect Ratio   1.000e+00    7.371e-04    1.000e+00   1.010e+00
--------------------------------------------------------------

Your formula reports the following:

Function Name  Average    Minimum    Maximum
-------------  ---------  --------   -------
Aspect Ratio   1.00006    1.000000   1.00972
--------------------------------------------
+5
source share
2 answers

These are the aspect ratios for the triangles that I know:

- ( 1).

- inradius, AR = abc/(8(s-a)(s-b)(s-c)) a,b,c - s = (a+b+c)/2. , a=b=c, 1.

, , .

+8

inradius . : AR = abc/((b + c-a) (c + a-b) (a + b-c))

0

All Articles