From aed943ccad04a7001842bb02b6a5612cbf6b02f8 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Fri, 23 Feb 2024 15:27:16 +0800 Subject: [PATCH] heart: duplicate pi declaration --- common.mk | 2 +- example/heart.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/common.mk b/common.mk index ac688e9..300b9c6 100644 --- a/common.mk +++ b/common.mk @@ -2,7 +2,7 @@ MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) DIR := $(dir $(MAKEFILE_PATH)) LIB ?= . -OPT ?= -Og +OPT ?= -O2 DEBUG ?= -g -gdwarf-4 GENERATED ?= diff --git a/example/heart.cpp b/example/heart.cpp index 538efcb..3b8e280 100644 --- a/example/heart.cpp +++ b/example/heart.cpp @@ -18,14 +18,13 @@ #include "memorymap.hpp" #include "geometry/heart.hpp" +#include "math/math.hpp" #include "math/vec3.hpp" #include "math/vec4.hpp" #include "math/mat4x4.hpp" using mat4x4 = mat<4, 4, float>; -constexpr float pi = 3.141592653589793; - struct rotation_weights { float drx; float dry;