Tool refactoring

This commit is contained in:
YourWishes committed 2023-03-22 18:54:22 -07:00
1 parent f267131d6b
commit 9e2f093527
41 files changed
+1871 -1664

No files matched your search

+2 -2
View File
@@ -18,12 +18,12 @@ void SphereMesh::createSphere(
// Create vertices
int32_t c = 0;
for (int32_t i = 0; i <= stacks; i++) {
float_t phi = M_PI * i / stacks;
float_t phi = MATH_PI * i / stacks;
float_t cosPhi = cos(phi);
float_t sinPhi = sin(phi);
for (int32_t j = 0; j <= slices; j++) {
float_t theta = 2 * M_PI * j / slices;
float_t theta = 2 * MATH_PI * j / slices;
float_t cosTheta = cos(theta);
float_t sinTheta = sin(theta);
+1
View File
@@ -5,6 +5,7 @@
#pragma once
#include "display/mesh/Mesh.hpp"
#include "util/mathutils.hpp"
namespace Dawn {
class SphereMesh {