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

Function cross

source/MRMesh/miniply.cpp:132–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 static inline float length(Vec3 v) { return std::sqrt(dot(v, v)); }
131 static inline Vec3 normalize(Vec3 v) { float len = length(v); return Vec3{ v.x / len, v.y / len, v.z / len }; }
132 static inline Vec3 cross(Vec3 lhs, Vec3 rhs) { return Vec3{ lhs.y * rhs.z - lhs.z * rhs.y, lhs.z * rhs.x - lhs.x * rhs.z, lhs.x * rhs.y - lhs.y * rhs.x }; }
133
134
135 //

Callers 1

triangulate_polygonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected