feat: add vec4 division operator

This commit is contained in:
Wellinator
2022-08-14 17:23:47 -03:00
parent 0558dd7612
commit 0d15d0c7c8
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -77,6 +77,10 @@ Vec4 Vec4::operator/(const float& v) const {
return Vec4(x / v, y / v, z / v, w);
}
Vec4 Vec4::operator/(const Vec4& v) const {
return Vec4(x / v.x, y / v.y, z / v.z, w);
}
void Vec4::operator+=(const Vec4& v) {
asm volatile(
"lqc2 $vf4, 0x0(%0) \n\t"