MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / edgeFunction

Function edgeFunction

src/rendering/raster_rendering_engine.cpp:859–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857 }
858
859 [[nodiscard]] float edgeFunction(const glm::vec2& a,
860 const glm::vec2& b,
861 const glm::vec2& c) {
862 return (c.x - a.x) * (b.y - a.y) - (c.y - a.y) * (b.x - a.x);
863 }
864
865 [[nodiscard]] glm::vec3 safeNormalize(const glm::vec3& value,
866 const glm::vec3& fallback) {

Callers 2

rasterizeShadowTriangleFunction · 0.85
rasterizeMeshTriangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected