Lines Matching refs:v

150 void Matrix4::load(const float* v) {  in load()  argument
151 memcpy(data, v, sizeof(data)); in load()
155 void Matrix4::load(const SkMatrix& v) { in load() argument
158 data[kScaleX] = v[SkMatrix::kMScaleX]; in load()
159 data[kSkewX] = v[SkMatrix::kMSkewX]; in load()
160 data[kTranslateX] = v[SkMatrix::kMTransX]; in load()
162 data[kSkewY] = v[SkMatrix::kMSkewY]; in load()
163 data[kScaleY] = v[SkMatrix::kMScaleY]; in load()
164 data[kTranslateY] = v[SkMatrix::kMTransY]; in load()
166 data[kPerspective0] = v[SkMatrix::kMPersp0]; in load()
167 data[kPerspective1] = v[SkMatrix::kMPersp1]; in load()
168 data[kPerspective2] = v[SkMatrix::kMPersp2]; in load()
176 mType = v.getType(); in load()
177 if (v.rectStaysRect()) { in load()
182 void Matrix4::copyTo(SkMatrix& v) const { in copyTo()
183 v.reset(); in copyTo()
185 v.set(SkMatrix::kMScaleX, data[kScaleX]); in copyTo()
186 v.set(SkMatrix::kMSkewX, data[kSkewX]); in copyTo()
187 v.set(SkMatrix::kMTransX, data[kTranslateX]); in copyTo()
189 v.set(SkMatrix::kMSkewY, data[kSkewY]); in copyTo()
190 v.set(SkMatrix::kMScaleY, data[kScaleY]); in copyTo()
191 v.set(SkMatrix::kMTransY, data[kTranslateY]); in copyTo()
193 v.set(SkMatrix::kMPersp0, data[kPerspective0]); in copyTo()
194 v.set(SkMatrix::kMPersp1, data[kPerspective1]); in copyTo()
195 v.set(SkMatrix::kMPersp2, data[kPerspective2]); in copyTo()
198 void Matrix4::loadInverse(const Matrix4& v) { in loadInverse() argument
200 if (v.isPureTranslate()) { in loadInverse()
218 data[kTranslateX] = -v.data[kTranslateX]; in loadInverse()
219 data[kTranslateY] = -v.data[kTranslateY]; in loadInverse()
223 mType = v.getType(); in loadInverse()
227 double scale = 1.0 / (v.data[kScaleX] * ((double)v.data[kScaleY] * v.data[kPerspective2] - in loadInverse()
228 (double)v.data[kTranslateY] * v.data[kPerspective1]) + in loadInverse()
229 v.data[kSkewX] * ((double)v.data[kTranslateY] * v.data[kPerspective0] - in loadInverse()
230 (double)v.data[kSkewY] * v.data[kPerspective2]) + in loadInverse()
231 v.data[kTranslateX] * ((double)v.data[kSkewY] * v.data[kPerspective1] - in loadInverse()
232 (double)v.data[kScaleY] * v.data[kPerspective0])); in loadInverse()
234 data[kScaleX] = (v.data[kScaleY] * v.data[kPerspective2] - in loadInverse()
235 v.data[kTranslateY] * v.data[kPerspective1]) * in loadInverse()
238 (v.data[kTranslateX] * v.data[kPerspective1] - v.data[kSkewX] * v.data[kPerspective2]) * in loadInverse()
241 (v.data[kSkewX] * v.data[kTranslateY] - v.data[kTranslateX] * v.data[kScaleY]) * scale; in loadInverse()
244 (v.data[kTranslateY] * v.data[kPerspective0] - v.data[kSkewY] * v.data[kPerspective2]) * in loadInverse()
246 data[kScaleY] = (v.data[kScaleX] * v.data[kPerspective2] - in loadInverse()
247 v.data[kTranslateX] * v.data[kPerspective0]) * in loadInverse()
250 (v.data[kTranslateX] * v.data[kSkewY] - v.data[kScaleX] * v.data[kTranslateY]) * scale; in loadInverse()
253 (v.data[kSkewY] * v.data[kPerspective1] - v.data[kScaleY] * v.data[kPerspective0]) * in loadInverse()
256 (v.data[kSkewX] * v.data[kPerspective0] - v.data[kScaleX] * v.data[kPerspective1]) * in loadInverse()
259 (v.data[kScaleX] * v.data[kScaleY] - v.data[kSkewX] * v.data[kSkewY]) * scale; in loadInverse()
264 void Matrix4::copyTo(float* v) const { in copyTo()
265 memcpy(v, data, sizeof(data)); in copyTo()
276 void Matrix4::multiply(float v) { in multiply() argument
278 data[i] *= v; in multiply()
377 void Matrix4::loadMultiply(const Matrix4& u, const Matrix4& v) { in loadMultiply() argument
385 const float e = v.get(i, j); in loadMultiply()