trying to steal an svo implementation since mine doesnt work well.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user