O'Reilly logo

Microsoft® Mobile Development Handbook by Peter Foot, Daniel Moth, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working in Three Dimensions

Until now, all the code samples in this chapter have simply drawn in two dimensions. The items have been drawn at a given position on the screen that is expressed as two numbers, X and Y. The X value (or X coordinate) specifies how far across the screen the image is to be drawn, and the Y value (or Y coordinate) specifies how far down the screen the image is to be drawn. You can move images from left to right by changing the X value, and similarly you can move images up or down by changing the Y value.

The first thing you must understand is that when you draw in three dimensions, you need a third value (or coordinate) to specify the location in the third dimension. This value is expressed as the Z coordinate. Such a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required