Index: include/core/SkMatrix.h |
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h |
index f148e390b5cd4930f2d985f61a286cda3748b7cc..387fa82fedb80b7c92242651131ced03b7b717fa 100644 |
--- a/include/core/SkMatrix.h |
+++ b/include/core/SkMatrix.h |
@@ -423,6 +423,19 @@ public: |
} |
} |
+ /** Apply this matrix to the array of homogeneous points, specified by src, |
+ where a homogeneous point is defined by 3 contiguous scalar values, |
+ and write the transformed points into the array of scalars specified by dst. |
+ dst[] = M * src[] |
+ @param dst Where the transformed coordinates are written. It must |
+ contain at least 3 * count entries |
+ @param src The original coordinates that are to be transformed. It |
+ must contain at least 3 * count entries |
+ @param count The number of triples (homogeneous points) in src to read, |
+ and then transform into dst. |
+ */ |
+ void mapHomogeneousPoints(SkScalar dst[], const SkScalar src[], int count) const; |
+ |
void mapXY(SkScalar x, SkScalar y, SkPoint* result) const { |
SkASSERT(result); |
this->getMapXYProc()(*this, x, y, result); |