Skip to content

Latest commit

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

math

Math functions for Glisy

Installation

$ clib install glisy/math --save

Usage

#include<glisy/math.h>intmain (void) {
mat4projection;
mat4model;
mat4view;
mat4mat;
vec3position= {0, 0, -1};
vec3eye= {0, 0, 0}
vec3up= {0, 1, 0};
mat4_identity(model);
projection=mat4_perspetive(45, 1.0, 1, 1000);
view=mat4_lookAt(eye, position, up);
mat=mat4_multiply(projection, view);
mat=mat4_multiply(mat, model);
return0;
}

License

MIT

About

Math functions for Glisy

Resources

Stars

14 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages