feat(matrix): add C44Matrix::RotateAroundZ

This commit is contained in:
fallenoak 2020-11-30 17:28:07 -06:00
parent 269c9b9a86
commit f3fe0b6bbe
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 28 additions and 0 deletions

View file

@ -60,6 +60,10 @@ C44Matrix C44Matrix::Inverse(float det) const {
return this->Adjoint() * (1.0f / det);
}
void C44Matrix::RotateAroundZ(float angle) {
*this = C44Matrix::RotationAroundZ(angle) * *this;
}
C44Matrix operator*(const C44Matrix& l, float a) {
float a0 = l.a0 * a;
float a1 = l.a1 * a;