Lines Matching refs:v

50 void CMSEXPORT _cmsVEC3cross(cmsVEC3* r, const cmsVEC3* u, const cmsVEC3* v)  in _cmsVEC3cross()  argument
52 r ->n[VX] = u->n[VY] * v->n[VZ] - v->n[VY] * u->n[VZ]; in _cmsVEC3cross()
53 r ->n[VY] = u->n[VZ] * v->n[VX] - v->n[VZ] * u->n[VX]; in _cmsVEC3cross()
54 r ->n[VZ] = u->n[VX] * v->n[VY] - v->n[VX] * u->n[VY]; in _cmsVEC3cross()
58 cmsFloat64Number CMSEXPORT _cmsVEC3dot(const cmsVEC3* u, const cmsVEC3* v) in _cmsVEC3dot() argument
60 return u->n[VX] * v->n[VX] + u->n[VY] * v->n[VY] + u->n[VZ] * v->n[VZ]; in _cmsVEC3dot()
86 _cmsVEC3init(&a-> v[0], 1.0, 0.0, 0.0); in _cmsMAT3identity()
87 _cmsVEC3init(&a-> v[1], 0.0, 1.0, 0.0); in _cmsMAT3identity()
88 _cmsVEC3init(&a-> v[2], 0.0, 0.0, 1.0); in _cmsMAT3identity()
107 if (!CloseEnough(a ->v[i].n[j], Identity.v[i].n[j])) return FALSE; in _cmsMAT3isIdentity()
117 a->v[i].n[0]*b->v[0].n[j] + a->v[i].n[1]*b->v[1].n[j] + a->v[i].n[2]*b->v[2].n[j] in _cmsMAT3per()
119 _cmsVEC3init(&r-> v[0], ROWCOL(0,0), ROWCOL(0,1), ROWCOL(0,2)); in _cmsMAT3per()
120 _cmsVEC3init(&r-> v[1], ROWCOL(1,0), ROWCOL(1,1), ROWCOL(1,2)); in _cmsMAT3per()
121 _cmsVEC3init(&r-> v[2], ROWCOL(2,0), ROWCOL(2,1), ROWCOL(2,2)); in _cmsMAT3per()
133 c0 = a -> v[1].n[1]*a -> v[2].n[2] - a -> v[1].n[2]*a -> v[2].n[1]; in _cmsMAT3inverse()
134 c1 = -a -> v[1].n[0]*a -> v[2].n[2] + a -> v[1].n[2]*a -> v[2].n[0]; in _cmsMAT3inverse()
135 c2 = a -> v[1].n[0]*a -> v[2].n[1] - a -> v[1].n[1]*a -> v[2].n[0]; in _cmsMAT3inverse()
137 det = a -> v[0].n[0]*c0 + a -> v[0].n[1]*c1 + a -> v[0].n[2]*c2; in _cmsMAT3inverse()
141 b -> v[0].n[0] = c0/det; in _cmsMAT3inverse()
142 b -> v[0].n[1] = (a -> v[0].n[2]*a -> v[2].n[1] - a -> v[0].n[1]*a -> v[2].n[2])/det; in _cmsMAT3inverse()
143 b -> v[0].n[2] = (a -> v[0].n[1]*a -> v[1].n[2] - a -> v[0].n[2]*a -> v[1].n[1])/det; in _cmsMAT3inverse()
144 b -> v[1].n[0] = c1/det; in _cmsMAT3inverse()
145 b -> v[1].n[1] = (a -> v[0].n[0]*a -> v[2].n[2] - a -> v[0].n[2]*a -> v[2].n[0])/det; in _cmsMAT3inverse()
146 b -> v[1].n[2] = (a -> v[0].n[2]*a -> v[1].n[0] - a -> v[0].n[0]*a -> v[1].n[2])/det; in _cmsMAT3inverse()
147 b -> v[2].n[0] = c2/det; in _cmsMAT3inverse()
148 b -> v[2].n[1] = (a -> v[0].n[1]*a -> v[2].n[0] - a -> v[0].n[0]*a -> v[2].n[1])/det; in _cmsMAT3inverse()
149 b -> v[2].n[2] = (a -> v[0].n[0]*a -> v[1].n[1] - a -> v[0].n[1]*a -> v[1].n[0])/det; in _cmsMAT3inverse()
169 void CMSEXPORT _cmsMAT3eval(cmsVEC3* r, const cmsMAT3* a, const cmsVEC3* v) in _cmsMAT3eval() argument
171 r->n[VX] = a->v[0].n[VX]*v->n[VX] + a->v[0].n[VY]*v->n[VY] + a->v[0].n[VZ]*v->n[VZ]; in _cmsMAT3eval()
172 r->n[VY] = a->v[1].n[VX]*v->n[VX] + a->v[1].n[VY]*v->n[VY] + a->v[1].n[VZ]*v->n[VZ]; in _cmsMAT3eval()
173 r->n[VZ] = a->v[2].n[VX]*v->n[VX] + a->v[2].n[VY]*v->n[VY] + a->v[2].n[VZ]*v->n[VZ]; in _cmsMAT3eval()