MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / TriangleArea

Method TriangleArea

Source/Engine/Core/Math/Vector3.cpp:313–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311
312template<>
313float Float3::TriangleArea(const Float3& v0, const Float3& v1, const Float3& v2)
314{
315 return ((v2 - v0) ^ (v1 - v0)).Length() * 0.5f;
316}
317
318template<>
319float Float3::Angle(const Float3& from, const Float3& to)

Callers

nothing calls this directly

Calls 1

LengthMethod · 0.45

Tested by

no test coverage detected