OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkMatrix44_DEFINED | 8 #ifndef SkMatrix44_DEFINED |
9 #define SkMatrix44_DEFINED | 9 #define SkMatrix44_DEFINED |
10 | 10 |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 #else | 303 #else |
304 void setColMajor(const SkMScalar data[]) { this->setColMajord(data); } | 304 void setColMajor(const SkMScalar data[]) { this->setColMajord(data); } |
305 void setRowMajor(const SkMScalar data[]) { this->setRowMajord(data); } | 305 void setRowMajor(const SkMScalar data[]) { this->setRowMajord(data); } |
306 #endif | 306 #endif |
307 | 307 |
308 /* This sets the top-left of the matrix and clears the translation and | 308 /* This sets the top-left of the matrix and clears the translation and |
309 * perspective components (with [3][3] set to 1). */ | 309 * perspective components (with [3][3] set to 1). */ |
310 void set3x3(SkMScalar m00, SkMScalar m01, SkMScalar m02, | 310 void set3x3(SkMScalar m00, SkMScalar m01, SkMScalar m02, |
311 SkMScalar m10, SkMScalar m11, SkMScalar m12, | 311 SkMScalar m10, SkMScalar m11, SkMScalar m12, |
312 SkMScalar m20, SkMScalar m21, SkMScalar m22); | 312 SkMScalar m20, SkMScalar m21, SkMScalar m22); |
| 313 void set3x3ColMajorf(const float[]); |
313 | 314 |
314 void setTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz); | 315 void setTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz); |
315 void preTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz); | 316 void preTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz); |
316 void postTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz); | 317 void postTranslate(SkMScalar dx, SkMScalar dy, SkMScalar dz); |
317 | 318 |
318 void setScale(SkMScalar sx, SkMScalar sy, SkMScalar sz); | 319 void setScale(SkMScalar sx, SkMScalar sy, SkMScalar sz); |
319 void preScale(SkMScalar sx, SkMScalar sy, SkMScalar sz); | 320 void preScale(SkMScalar sx, SkMScalar sy, SkMScalar sz); |
320 void postScale(SkMScalar sx, SkMScalar sy, SkMScalar sz); | 321 void postScale(SkMScalar sx, SkMScalar sy, SkMScalar sz); |
321 | 322 |
322 inline void setScale(SkMScalar scale) { | 323 inline void setScale(SkMScalar scale) { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 /** | 465 /** |
465 * Does not take the time to 'compute' the typemask. Only returns true if | 466 * Does not take the time to 'compute' the typemask. Only returns true if |
466 * we already know that this matrix is identity. | 467 * we already know that this matrix is identity. |
467 */ | 468 */ |
468 inline bool isTriviallyIdentity() const { | 469 inline bool isTriviallyIdentity() const { |
469 return 0 == fTypeMask; | 470 return 0 == fTypeMask; |
470 } | 471 } |
471 }; | 472 }; |
472 | 473 |
473 #endif | 474 #endif |
OLD | NEW |