diff options
author | Stephen Hines <srhines@google.com> | 2012-07-10 17:26:37 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-07-10 17:26:37 -0700 |
commit | 010835d47156b5189b0cfe3ad43ce6a5fbb96d99 (patch) | |
tree | 84dad36cbe16a39432e8fcb3fa47870374f2d284 /graphics/java/android | |
parent | 0fb362b41ef4c272148b90d16880f09160293f96 (diff) | |
parent | ec6f200cd8a882458c57a63e1740731f0563cbcc (diff) | |
download | frameworks_base-010835d47156b5189b0cfe3ad43ce6a5fbb96d99.zip frameworks_base-010835d47156b5189b0cfe3ad43ce6a5fbb96d99.tar.gz frameworks_base-010835d47156b5189b0cfe3ad43ce6a5fbb96d99.tar.bz2 |
Merge "Fix RS matrix docs regarding row/column and x/y."
Diffstat (limited to 'graphics/java/android')
-rw-r--r-- | graphics/java/android/renderscript/Matrix2f.java | 20 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Matrix3f.java | 20 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Matrix4f.java | 20 |
3 files changed, 30 insertions, 30 deletions
diff --git a/graphics/java/android/renderscript/Matrix2f.java b/graphics/java/android/renderscript/Matrix2f.java index acc5bd8..39abd4f 100644 --- a/graphics/java/android/renderscript/Matrix2f.java +++ b/graphics/java/android/renderscript/Matrix2f.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 The Android Open Source Project + * Copyright (C) 2009-2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,23 +59,23 @@ public class Matrix2f { /** * Returns the value for a given row and column * - * @param i row of the value to return - * @param j column of the value to return + * @param x column of the value to return + * @param y row of the value to return * - * @return value in the ith row and jth column + * @return value in the yth row and xth column */ - public float get(int i, int j) { - return mMat[i*2 + j]; + public float get(int x, int y) { + return mMat[x*2 + y]; } /** * Sets the value for a given row and column * - * @param i row of the value to set - * @param j column of the value to set + * @param x column of the value to set + * @param y row of the value to set */ - public void set(int i, int j, float v) { - mMat[i*2 + j] = v; + public void set(int x, int y, float v) { + mMat[x*2 + y] = v; } /** diff --git a/graphics/java/android/renderscript/Matrix3f.java b/graphics/java/android/renderscript/Matrix3f.java index 253506d..66f2c81 100644 --- a/graphics/java/android/renderscript/Matrix3f.java +++ b/graphics/java/android/renderscript/Matrix3f.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 The Android Open Source Project + * Copyright (C) 2009-2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,23 +59,23 @@ public class Matrix3f { /** * Returns the value for a given row and column * - * @param i row of the value to return - * @param j column of the value to return + * @param x column of the value to return + * @param y row of the value to return * - * @return value in the ith row and jth column + * @return value in the yth row and xth column */ - public float get(int i, int j) { - return mMat[i*3 + j]; + public float get(int x, int y) { + return mMat[x*3 + y]; } /** * Sets the value for a given row and column * - * @param i row of the value to set - * @param j column of the value to set + * @param x column of the value to set + * @param y row of the value to set */ - public void set(int i, int j, float v) { - mMat[i*3 + j] = v; + public void set(int x, int y, float v) { + mMat[x*3 + y] = v; } /** diff --git a/graphics/java/android/renderscript/Matrix4f.java b/graphics/java/android/renderscript/Matrix4f.java index adc1806..a85d464 100644 --- a/graphics/java/android/renderscript/Matrix4f.java +++ b/graphics/java/android/renderscript/Matrix4f.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 The Android Open Source Project + * Copyright (C) 2009-2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,23 +59,23 @@ public class Matrix4f { /** * Returns the value for a given row and column * - * @param i row of the value to return - * @param j column of the value to return + * @param x column of the value to return + * @param y row of the value to return * - * @return value in the ith row and jth column + * @return value in the yth row and xth column */ - public float get(int i, int j) { - return mMat[i*4 + j]; + public float get(int x, int y) { + return mMat[x*4 + y]; } /** * Sets the value for a given row and column * - * @param i row of the value to set - * @param j column of the value to set + * @param x column of the value to set + * @param y row of the value to set */ - public void set(int i, int j, float v) { - mMat[i*4 + j] = v; + public void set(int x, int y, float v) { + mMat[x*4 + y] = v; } /** |