Lines Matching refs:theta
46 cmsFloat64Number theta; member
131 sp ->alpha = sp ->theta = 0; in ToSpherical()
136 sp ->theta = _cmsAtan2(sqrt(a*a + b*b), L); in ToSpherical()
152 sin_theta = sin((M_PI * sp ->theta) / 180.0); in ToCartesian()
153 cos_theta = cos((M_PI * sp ->theta) / 180.0); in ToCartesian()
168 void QuantizeToSector(const cmsSpherical* sp, int* alpha, int* theta) in QuantizeToSector() argument
171 *theta = (int) floor(((sp->theta * (SECTORS)) / 180.0) ); in QuantizeToSector()
175 if (*theta >= SECTORS) in QuantizeToSector()
176 *theta = SECTORS-1; in QuantizeToSector()
325 int alpha, theta; in GetPoint() local
338 if (sp ->r < 0 || sp ->alpha < 0 || sp->theta < 0) { in GetPoint()
344 QuantizeToSector(sp, &alpha, &theta); in GetPoint()
346 if (alpha < 0 || theta < 0 || alpha >= SECTORS || theta >= SECTORS) { in GetPoint()
352 return &gbd ->Gamut[theta][alpha]; in GetPoint()
439 int FindNearSectors(cmsGDB* gbd, int alpha, int theta, cmsGDBPoint* Close[]) in FindNearSectors() argument
449 t = theta + Spiral[i].AdvY; in FindNearSectors()
473 cmsBool InterpolateMissingSector(cmsGDB* gbd, int alpha, int theta) in InterpolateMissingSector() argument
486 if (gbd ->Gamut[theta][alpha].Type != GP_EMPTY) return TRUE; in InterpolateMissingSector()
489 nCloseSectors = FindNearSectors(gbd, alpha, theta, Close); in InterpolateMissingSector()
494 sp.theta = (cmsFloat64Number) ((theta + 0.5) * 180.0) / (SECTORS); in InterpolateMissingSector()
507 closel.theta = 0; in InterpolateMissingSector()
529 templ.theta >= (theta*180.0/SECTORS) && in InterpolateMissingSector()
530 templ.theta <= ((theta+1)*180.0/SECTORS) && in InterpolateMissingSector()
539 gbd ->Gamut[theta][alpha].p = closel; in InterpolateMissingSector()
540 gbd ->Gamut[theta][alpha].Type = GP_MODELED; in InterpolateMissingSector()
551 int alpha, theta; in cmsGDBCompute() local
570 for (theta = 1; theta < SECTORS; theta++) { in cmsGDBCompute()
573 if (!InterpolateMissingSector(gbd, alpha, theta)) return FALSE; in cmsGDBCompute()