feat(matrix): add C44Matrix::Scale for float

This commit is contained in:
fallenoak 2022-12-24 17:20:03 -06:00
parent 6b14afb6bd
commit 3dd32515fe
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
2 changed files with 15 additions and 0 deletions

View file

@ -79,6 +79,20 @@ void C44Matrix::Scale(const C3Vector& scale) {
this->c2 *= scale.z;
}
void C44Matrix::Scale(float scale) {
this->a0 *= scale;
this->a1 *= scale;
this->a2 *= scale;
this->b0 *= scale;
this->b1 *= scale;
this->b2 *= scale;
this->c0 *= scale;
this->c1 *= scale;
this->c2 *= scale;
}
C44Matrix operator*(const C44Matrix& l, float a) {
float a0 = l.a0 * a;
float a1 = l.a1 * a;