fix: applied fixes for g++
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user