minor matrix function
This commit is contained in:
1 parent
efad72f2ac
commit
925225df0e
3 files changed
+15
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user