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

Function quadricFromPlane

Source/ThirdParty/meshoptimizer/simplifier.cpp:801–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799}
800
801static void quadricFromPlane(Quadric& Q, float a, float b, float c, float d, float w)
802{
803 float aw = a * w;
804 float bw = b * w;
805 float cw = c * w;
806 float dw = d * w;
807
808 Q.a00 = a * aw;
809 Q.a11 = b * bw;
810 Q.a22 = c * cw;
811 Q.a10 = a * bw;
812 Q.a20 = a * cw;
813 Q.a21 = b * cw;
814 Q.b0 = a * dw;
815 Q.b1 = b * dw;
816 Q.b2 = c * dw;
817 Q.c = d * dw;
818 Q.w = w;
819}
820
821static void quadricFromPoint(Quadric& Q, float x, float y, float z, float w)
822{

Callers 2

quadricFromTriangleFunction · 0.85
quadricFromTriangleEdgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected