Lines Matching refs:dim
75 GLuint dim, GLuint order) in _math_horner_bezier_curve() argument
84 for (k = 0; k < dim; k++) in _math_horner_bezier_curve()
85 out[k] = s * cp[k] + bincoeff * t * cp[dim + k]; in _math_horner_bezier_curve()
87 for (i = 2, cp += 2 * dim, powert = t * t; i < order; in _math_horner_bezier_curve()
88 i++, powert *= t, cp += dim) { in _math_horner_bezier_curve()
92 for (k = 0; k < dim; k++) in _math_horner_bezier_curve()
98 for (k = 0; k < dim; k++) in _math_horner_bezier_curve()
119 GLuint dim, GLuint uorder, GLuint vorder) in _math_horner_bezier_surf() argument
121 GLfloat *cp = cn + uorder * vorder * dim; in _math_horner_bezier_surf()
122 GLuint i, uinc = vorder * dim; in _math_horner_bezier_surf()
131 GLfloat *ucp = &cn[j * dim]; in _math_horner_bezier_surf()
138 for (k = 0; k < dim; k++) in _math_horner_bezier_surf()
139 cp[j * dim + k] = s * ucp[k] + bincoeff * u * ucp[uinc + k]; in _math_horner_bezier_surf()
146 for (k = 0; k < dim; k++) in _math_horner_bezier_surf()
147 cp[j * dim + k] = in _math_horner_bezier_surf()
148 s * cp[j * dim + k] + bincoeff * poweru * ucp[k]; in _math_horner_bezier_surf()
153 _math_horner_bezier_curve(cp, out, v, dim, vorder); in _math_horner_bezier_surf()
156 _math_horner_bezier_curve(cn, out, v, dim, vorder); in _math_horner_bezier_surf()
169 _math_horner_bezier_curve(cn, &cp[i * dim], v, dim, vorder); in _math_horner_bezier_surf()
173 _math_horner_bezier_curve(cp, out, u, dim, uorder); in _math_horner_bezier_surf()
176 _math_horner_bezier_curve(cn, out, u, dim, uorder); in _math_horner_bezier_surf()
196 GLfloat * dv, GLfloat u, GLfloat v, GLuint dim, in _math_de_casteljau_surf() argument
199 GLfloat *dcn = cn + uorder * vorder * dim; in _math_de_casteljau_surf()
203 GLuint uinc = vorder * dim; in _math_de_casteljau_surf()
212 #define CN(I,J,K) cn[(I)*uinc+(J)*dim+(K)] in _math_de_casteljau_surf()
216 for (k = 0; k < dim; k++) { in _math_de_casteljau_surf()
231 for (k = 0; k < dim; k++) { in _math_de_casteljau_surf()
268 for (k = 0; k < dim; k++) { in _math_de_casteljau_surf()
304 for (k = 0; k < dim; k++) { in _math_de_casteljau_surf()
336 for (k = 0; k < dim; k++) { in _math_de_casteljau_surf()
391 for (k = 0; k < dim; k++) { in _math_de_casteljau_surf()