MCPcopy Create free account
hub / github.com/Kitware/VTK / TriangleArea

Method TriangleArea

Common/DataModel/vtkTriangle.h:277–283  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

275
276//----------------------------------------------------------------------------
277inline double vtkTriangle::TriangleArea(const double p1[3], const double p2[3], const double p3[3])
278{
279 double n[3];
280 vtkTriangle::ComputeNormalDirection(p1, p2, p3, n);
281
282 return 0.5 * vtkMath::Norm(n);
283}
284
285VTK_ABI_NAMESPACE_END
286#endif

Callers

nothing calls this directly

Calls 1

NormFunction · 0.70

Tested by

no test coverage detected