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 ...

Get Microsoft® Mobile Development Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.