exracting planes

This commit is contained in:
Recep Aslantas
2017-12-30 12:18:32 +03:00
parent 3f616ce6a3
commit c98340d9d2
6 changed files with 121 additions and 0 deletions

21
src/plane.c Normal file
View File

@@ -0,0 +1,21 @@
/*
* Copyright (c), Recep Aslantas.
*
* MIT License (MIT), http://opensource.org/licenses/MIT
* Full license can be found in the LICENSE file
*/
#include "../include/cglm/cglm.h"
#include "../include/cglm/call.h"
CGLM_EXPORT
void
glmc_plane_normalize(vec4 plane) {
glm_plane_normalize(plane);
}
CGLM_EXPORT
void
glmc_plane_extract(mat4 projView, vec4 dest[6]) {
glm_plane_extract(projView, dest);
}