Skip to content
Snippets Groups Projects
Commit b961e981 authored by Christoph-Anton Schwierz's avatar Christoph-Anton Schwierz
Browse files

matrix3ToMatrix4()

parent a62a283a
Branches
Tags
No related merge requests found
......@@ -168,4 +168,14 @@ export function matrix4Product(a: Matrix4, b: Matrix4):Matrix4 {
]
}
export function matrix3ToMatrix4(m: Matrix3): Matrix4 {
const m4: Matrix4 = [
m[0], m[1], m[2], 0,
m[3], m[4], m[5], 0,
m[6], m[7], m[8], 0,
0 ,0 ,0 , 1
]
return m4;
}
//
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment