diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-18 18:52:09 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-18 18:52:09 +0000 |
commit | e2419cc5edbe1a6a7dae81a90ca44673a1fa030f (patch) | |
tree | 1550a02fbbee0ddeb3cd2049af3926a58457358a | |
parent | d5a163909834542a8a43d97c1092bed19adfc82c (diff) |
Add getFloat/setFloat funcs to SkMatrix44
These match the existing getDouble/setDouble functions.
R=reed@google.com, tomhudson@chromium.org
Author: enne@chromium.org
Review URL: https://chromiumcodereview.appspot.com/23757031
git-svn-id: http://skia.googlecode.com/svn/trunk@11355 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | include/utils/SkMatrix44.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/utils/SkMatrix44.h b/include/utils/SkMatrix44.h index 9d9b6e0102..6e85bb56f4 100644 --- a/include/utils/SkMatrix44.h +++ b/include/utils/SkMatrix44.h @@ -224,6 +224,12 @@ public: inline void setDouble(int row, int col, double value) { this->set(row, col, SkDoubleToMScalar(value)); } + inline float getFloat(int row, int col) const { + return SkMScalarToFloat(this->get(row, col)); + } + inline void setFloat(int row, int col, float value) { + this->set(row, col, SkFloatToMScalar(value)); + } /** These methods allow one to efficiently read matrix entries into an * array. The given array must have room for exactly 16 entries. Whenever |