summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2010-09-16 18:59:08 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-09-16 18:59:08 -0700
commit227e68687893253120c2ca3fd82f0cce974611e9 (patch)
tree8eb5aafff44e3725353c45400efd2dba09b78744 /graphics
parentc6669ca63299219d815464129dac051ab2404286 (diff)
parent3a58ec108bb430b81a328adb2062035f860159b4 (diff)
downloadframeworks_base-227e68687893253120c2ca3fd82f0cce974611e9.zip
frameworks_base-227e68687893253120c2ca3fd82f0cce974611e9.tar.gz
frameworks_base-227e68687893253120c2ca3fd82f0cce974611e9.tar.bz2
Merge "Adding some documentation to Matrix.mapVectors methods."
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/Matrix.java11
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) {