trying to steal an svo implementation since mine doesnt work well.

This commit is contained in:
Yggdrasil75
2025-12-08 14:55:37 -05:00
parent 1d55f4d571
commit b108784f88
4 changed files with 494 additions and 2 deletions

View File

@@ -9,14 +9,15 @@
template<typename T>
class Vec3 {
public:
T x, y, z;
struct{ T x, y, z; };
Vec3() : x(0), y(0), z(0) {}
Vec3(T x, T y, T z) : x(x), y(y), z(z) {}
Vec3(T scalar) : x(scalar), y(scalar), z(scalar) {}
Vec3(float[3] acd) : x(acd[0]), y(acd[1]), z(acd[2]) {}
Vec3(const class Vec2& vec2, T z = 0);
Vec3& move(const Vec3& newpos) {
x = newpos.x;
y = newpos.y;