MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / TriangleArea

Function TriangleArea

others/smallest_circle.cpp:54–60  ·  view source on GitHub ↗

* Compute the area of triangle formed by three points using [Heron's * formula](https://en.wikipedia.org/wiki/Heron%27s_formula). * If the lengths of the sides of the triangle are \f$a,\,b,\,c\f$ and * \f$s=\displaystyle\frac{a+b+c}{2}\f$ is the semi-perimeter then the area is * given by \f[A=\sqrt{s(s-a)(s-b)(s-c)}\f] * \param [in] A vertex A * \param [in] B vertex B * \param [in] C vertex

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

circleFunction · 0.85

Calls 1

LenghtLineFunction · 0.85

Tested by

no test coverage detected