MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / shift

Function shift

source/MRTest/MRTriangleIntersectionTests.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 Vector3f { 0.f, -52.f, 0.f },
32};
33constexpr Triangle3f shift( const Triangle3f& origin, float x, float y, float z )
34{
35 return {
36 origin[0] + Vector3f { x, y, z },
37 origin[1] + Vector3f { x, y, z },
38 origin[2] + Vector3f { x, y, z },
39 };
40}
41
42using VertexOrder = std::array<size_t, 3>;
43constexpr std::array<VertexOrder, 6> triPermutations

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected