From 29d8ca4ce4aef8e0afca62b8ace9ee18a24a9ffd Mon Sep 17 00:00:00 2001 From: maobaoqi Date: Tue, 15 Jan 2019 14:34:42 +0000 Subject: [PATCH] Fix bug in CrossProduct function in boing example Closes #1418. --- examples/boing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/boing.c b/examples/boing.c index 5b8e667e..d13c5841 100644 --- a/examples/boing.c +++ b/examples/boing.c @@ -165,7 +165,7 @@ void CrossProduct( vertex_t a, vertex_t b, vertex_t c, vertex_t *n ) v2 = c.y - a.y; v3 = c.z - a.z; - n->x = u2 * v3 - v2 * v3; + n->x = u2 * v3 - v2 * u3; n->y = u3 * v1 - v3 * u1; n->z = u1 * v2 - v1 * u2; }