some more upgrades. not exactly what I expected, but its fun.

This commit is contained in:
yggdrasil75
2025-11-13 05:38:58 -05:00
parent ee5783e0e6
commit 9eb37f01b7
2 changed files with 37 additions and 16 deletions

View File

@@ -33,6 +33,10 @@ public:
return *this;
}
Vec4 average(const Vec4& other) const {
return Vec4((x+other.x)/2,(y+other.y)/2,(z+other.z)/2,(w+other.w)/2);
}
Vec4 operator+(const Vec4& other) const {
return Vec4(x + other.x, y + other.y, z + other.z, w + other.w);
}