Matrix Methods

What we will do now, though, is explore the other methods of the Matrix class, as they help us accomplish much of what we would want without having to resort to relearning our high school and college math lessons.

Instead of creating our own Matrix numbers, we can simply call corresponding methods for the transformations that we would like to use.

Each of the snippets presented next can take the place of the canvas.drawBitmap line in the "Drawing a Bitmap onto a Bitmap" example.

Was this article helpful?

0 0

Post a comment