datenwolf / linmath.h

a lean linear math library, aimed at graphics programming. Supports vec3, vec4, mat4x4 and quaternions
Do What The F*ck You Want To Public License
922 stars 134 forks source link

Add vec{2,3,4} minimum and maximum functions #24

Closed adrianbroher closed 8 years ago

adrianbroher commented 8 years ago

Hello,

the attached PR adds the vec{2,3,4}_{min,max} functions. These functions take two input vectors a and b and write component wise minimum or respective maximum value into the result vector.