Lines Matching refs:vectors

83 /* _glmDot: compute the dot product of two vectors
98 /* _glmCross: compute the cross product of two vectors
135 /* _glmEqual: compares two vectors and returns TRUE if they are
154 /* _glmWeldVectors: eliminate (weld) vectors that are within an
157 * vectors - array of float[3]'s to be welded
158 * numvectors - number of float[3]'s in vectors
159 * epsilon - maximum difference between vectors
163 _glmWeldVectors(float* vectors, uint* numvectors, float epsilon)
170 memcpy(copies, vectors, (sizeof(float) * 3 * (*numvectors + 1)));
175 if (_glmEqual(&vectors[3 * i], &copies[3 * j], epsilon)) {
181 copies[3 * copied + 0] = vectors[3 * i + 0];
182 copies[3 * copied + 1] = vectors[3 * i + 1];
183 copies[3 * copied + 2] = vectors[3 * i + 2];
190 vectors[3 * i + 0] = (float)j;
996 * cross product of the two vectors derived from the sides of each
1653 /* glmWeld: eliminate (weld) vectors that are within an epsilon of
1664 float* vectors;
1671 vectors = model->vertices;
1672 copies = _glmWeldVectors(vectors, &numvectors, epsilon);
1678 T(i).vindices[0] = (uint)vectors[3 * T(i).vindices[0] + 0];
1679 T(i).vindices[1] = (uint)vectors[3 * T(i).vindices[1] + 0];
1680 T(i).vindices[2] = (uint)vectors[3 * T(i).vindices[2] + 0];
1684 free(vectors);
1844 vectors = model->normals;
1845 copies = _glmOptimizeVectors(vectors, &numvectors);
1851 T(i).nindices[0] = (uint)vectors[3 * T(i).nindices[0] + 0];
1852 T(i).nindices[1] = (uint)vectors[3 * T(i).nindices[1] + 0];
1853 T(i).nindices[2] = (uint)vectors[3 * T(i).nindices[2] + 0];
1857 free(vectors);
1877 vectors = model->texcoords;
1878 copies = _glmOptimizeVectors(vectors, &numvectors);
1885 T(i).tindices[j] = (uint)vectors[3 * T(i).tindices[j] + 0];
1890 free(vectors);