fix cpp math library (#14458)

* fix cpp math library
This commit is contained in:
李吉林
2023-03-03 17:33:33 +08:00
committed by GitHub
parent 010245457d
commit f4e8b1e03a
32 changed files with 407 additions and 723 deletions
@@ -322,7 +322,7 @@ void GeometryRenderer::addTriangle(const Vec3 &v0, const Vec3 &v1, const Vec3 &v
const Vec3 dist1 = v1 - v0;
const Vec3 dist2 = v2 - v0;
Vec3 norm;
Vec3::crossProduct(dist1, dist2, &norm);
Vec3::cross(dist1, dist2, &norm);
norm.normalize();
normal.set(norm.x, norm.y, norm.z, 1.0F);
}