In the Northern Hemisphere, the shadow-casting edge of a sundial gnomon is normally oriented so that it points due northward and is parallel to the rotational axis of Earth. That is, it is inclined to the northern horizon at an angle that equals the latitude of the sundial's location. At present, such a gnomon should thus point almost precisely at Polaris, as this is within 1° of the north celestial pole.

On some sundials, the gnomon is vertical. These were usually used in former times for observing the altitude of the Sun, especially when on the meridian. The style is the part of the gnomon that casts the shadow. This can change as the Sun moves. For example, the upper west edge of the gnomon might be the style in the morning and the upper east edge might be the style in the afternoon. A three-dimensional gnomon is commonly used in CAD and computer graphics as an aid to positioning objects in the virtual world. By convention, the x-axis direction is colored red, the y-axis green and the z-axis blue. NASA astronauts used a gnomon as a photographic tool to indicate local vertical and to display a color chart when they were working on the Moon's surface.

More Info: en.wikipedia.org