public static vec3 GetTranslate(this mat4 matrix) { vec4 col3 = matrix[3]; return new vec3(col3.x, col3.y, col3.z); } }