add tests for vec2 and its call version

This commit is contained in:
Recep Aslantas
2020-02-24 10:06:19 +03:00
parent 8a068c3291
commit 43ae3b332a
10 changed files with 771 additions and 81 deletions

View File

@@ -35,7 +35,6 @@
#include "../common.h"
#include "../types-struct.h"
#include "../mat2.h"
#include "vec2.h"
#define GLMS_MAT2_IDENTITY_INIT {1.0f, 0.0f, 0.0f, 1.0f}
#define GLMS_MAT2_ZERO_INIT {0.0f, 0.0f, 0.0f, 0.0f}

View File

@@ -113,7 +113,7 @@ typedef union mat2s {
} mat2s;
typedef union mat3s {
mat3 raw;
mat3 raw;
vec3s col[3];
#if CGLM_USE_ANONYMOUS_STRUCT
struct {
@@ -125,7 +125,7 @@ typedef union mat3s {
} mat3s;
typedef union CGLM_ALIGN_MAT mat4s {
mat4 raw;
mat4 raw;
vec4s col[4];
#if CGLM_USE_ANONYMOUS_STRUCT
struct {