opengl_learn

Step-by-step introduction to OpenGL
git clone https://0xdd.org/code/opengl_learn.git
Log | Files | Refs | README | LICENSE

ogl_vec3f_isapproxequal.c (349B)


      1 /*
      2 2018 David DiPaola
      3 licensed under CC0 (public domain, see https://creativecommons.org/publicdomain/zero/1.0/)
      4 */
      5 
      6 #include "ogl.h"
      7 
      8 int
      9 ogl_vec3f_isapproxequal(
     10 	struct ogl_vec3f a, struct ogl_vec3f b
     11 ) {
     12 	return (
     13 		ogl_GLfloat_isapproxequal(a.x, b.x)
     14 		&&
     15 		ogl_GLfloat_isapproxequal(a.y, b.y)
     16 		&&
     17 		ogl_GLfloat_isapproxequal(a.z, b.z)
     18 	);
     19 }
     20