fix: applied fixes for g++

This commit is contained in:
2025-12-20 21:58:48 +01:00
parent a1d8d374c5
commit 3b06e581c6
3 changed files with 9 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
#define POLYGON_H
#include "fastmath.hpp"
#include <iostream>
struct polygon {
vec3 points[3];
@@ -60,7 +61,7 @@ struct polygon {
vec3 avgNormal() {
vec3 result;
for (int i = 0; i++; i < 3) {
for (int i = 0; i < 3;i++) {
result += normals[i];
}
return result * decimal(0.3333);