MCPcopy Create free account
hub / github.com/SaschaWillems/HowToVulkan / cross

Function cross

source/external/tinyobj/tiny_obj_loader.h:1469–1472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467};
1468
1469inline TinyObjPoint cross(const TinyObjPoint &v1, const TinyObjPoint &v2) {
1470 return TinyObjPoint(v1.y * v2.z - v1.z * v2.y, v1.z * v2.x - v1.x * v2.z,
1471 v1.x * v2.y - v1.y * v2.x);
1472}
1473
1474inline real_t dot(const TinyObjPoint &v1, const TinyObjPoint &v2) {
1475 return (v1.x * v2.x + v1.y * v2.y + v1.z * v2.z);

Callers 1

exportGroupsToShapeFunction · 0.85

Calls 1

TinyObjPointClass · 0.85

Tested by

no test coverage detected