diff options
| author | Adam Cohen <adamcohen@google.com> | 2010-09-16 17:21:21 -0700 |
|---|---|---|
| committer | Adam Cohen <adamcohen@google.com> | 2010-09-16 17:25:43 -0700 |
| commit | 3a58ec108bb430b81a328adb2062035f860159b4 (patch) | |
| tree | 6835f87eb978e6e0ac6f3dbd9c49e4151e7ed4f2 /graphics/java/android | |
| parent | f4cae9f944975f7232b565e78ba35e7515871aec (diff) | |
| download | frameworks_base-3a58ec108bb430b81a328adb2062035f860159b4.zip frameworks_base-3a58ec108bb430b81a328adb2062035f860159b4.tar.gz frameworks_base-3a58ec108bb430b81a328adb2062035f860159b4.tar.bz2 | |
Adding some documentation to Matrix.mapVectors methods.
Change-Id: I6c59c40ac9ebd39d9c5fc189917172da983cc766
Diffstat (limited to 'graphics/java/android')
| -rw-r--r-- | graphics/java/android/graphics/Matrix.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Matrix.java b/graphics/java/android/graphics/Matrix.java index b336995..66ed104 100644 --- a/graphics/java/android/graphics/Matrix.java +++ b/graphics/java/android/graphics/Matrix.java @@ -422,6 +422,10 @@ public class Matrix { * the transformed vectors into the array of vectors specified by dst. The * two arrays represent their "vectors" as pairs of floats [x, y]. * + * Note: this method does not apply the translation associated with the matrix. Use + * {@link Matrix#mapPoints(float[], int, float[], int, int)} if you want the translation + * to be applied. + * * @param dst The array of dst vectors (x,y pairs) * @param dstIndex The index of the first [x,y] pair of dst floats * @param src The array of src vectors (x,y pairs) @@ -455,6 +459,9 @@ public class Matrix { * the transformed vectors into the array of vectors specified by dst. The * two arrays represent their "vectors" as pairs of floats [x, y]. * + * Note: this method does not apply the translation associated with the matrix. Use + * {@link Matrix#mapPoints(float[], float[])} if you want the translation to be applied. + * * @param dst The array of dst vectors (x,y pairs) * @param src The array of src vectors (x,y pairs) */ @@ -478,6 +485,10 @@ public class Matrix { /** * Apply this matrix to the array of 2D vectors, and write the transformed * vectors back into the array. + * + * Note: this method does not apply the translation associated with the matrix. Use + * {@link Matrix#mapPoints(float[])} if you want the translation to be applied. + * * @param vecs The array [x0, y0, x1, y1, ...] of vectors to transform. */ public void mapVectors(float[] vecs) { |
