minor matrix function

This commit is contained in:
vladislav.khorev committed 2013-05-27 20:15:24 +00:00
1 parent efad72f2ac
commit 925225df0e
3 files changed
+15

No files matched your search

+12
View File
@@ -53,5 +53,17 @@ mat3 InverseMatrix(const mat3& m)
return r;
}
mat3 CreateZRotationMatrix(float angle)
{
mat3 result = IdentityMatrix;
result.m[0] = cosf(angle);
result.m[1] = -sinf(angle);
result.m[3] = sinf(angle);
result.m[4] = cosf(angle);
return result;
}
} //namespace SE