MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / compute_2D_triangle_area

Function compute_2D_triangle_area

tools/Triangle/TriangleWrapper.cpp:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 Float compute_2D_triangle_area(
113 const VectorF& v0,
114 const VectorF& v1,
115 const VectorF& v2) {
116 VectorF u = v1 - v0;
117 VectorF v = v2 - v0;
118 return u[0]*v[1] - u[1]*v[0];
119 }
120
121}
122

Callers 2

select_seed_pointMethod · 0.85
compute_from_meshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected