Home | History | Annotate | Download | only in vega

Lines Matching refs:vec

443 static INLINE void vector_unit(float *vec)
445 float len = sqrt(vec[0] * vec[0] + vec[1] * vec[1]);
446 vec[0] /= len;
447 vec[1] /= len;
450 static INLINE void line_normal_vector(float *line, float *vec)
456 vec[0] = normal[2] - normal[0];
457 vec[1] = normal[3] - normal[1];
459 vector_unit(vec);