diff options
author | Stephen Hines <srhines@google.com> | 2012-07-10 15:38:09 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2012-07-10 15:38:09 -0700 |
commit | 411f5996bccf88d5d2f8d1f003d39a8d76365244 (patch) | |
tree | 839678a2021c7aa9da8ee9df0fab8ec8408abc8c /rsMatrix3x3.h | |
parent | cd919a177f2b25af1b304dd4d79f0a768fed342f (diff) | |
download | rs-411f5996bccf88d5d2f8d1f003d39a8d76365244.tar.gz |
Switch row/col to x/y in order to improve clarity.
RS matrices use column major ordering. The previous parameter names made this
very confusing to users of the API.
Change-Id: I1f3a53c4a7563416933acef4260b33d87468308e
Diffstat (limited to 'rsMatrix3x3.h')
-rw-r--r-- | rsMatrix3x3.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/rsMatrix3x3.h b/rsMatrix3x3.h index f96d2703..05249b15 100644 --- a/rsMatrix3x3.h +++ b/rsMatrix3x3.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 The Android Open Source Project + * Copyright (C) 2011-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. @@ -25,12 +25,12 @@ namespace android { namespace renderscript { struct Matrix3x3 : public rs_matrix3x3 { - inline float get(uint32_t row, uint32_t col) const { - return m[row*3 + col]; + inline float get(uint32_t x, uint32_t y) const { + return m[x*3 + y]; } - inline void set(uint32_t row, uint32_t col, float v) { - m[row*3 + col] = v; + inline void set(uint32_t x, uint32_t y, float v) { + m[x*3 + y] = v; } void loadIdentity(); @@ -51,12 +51,4 @@ struct Matrix3x3 : public rs_matrix3x3 { } } - - - -#endif - - - - - +#endif // ANDROID_RS_MATRIX_3x3_H |