1# Coordinate transformation between different Frames.
2
3# This example illustrates the camera and world coordinate systems relationship. The position of the
4# camera in the world coordinate system is printed from <code>camera()->position()</code>.
5# Symmetrically, the position of the world origin is given in the camera coordinate system by
6# <code>camera()->cameraCoordinatesOf(0,0,0)</code>.
7
8# Three sets of lines (red, green, blue) are drawn. They have different starting points, but common
9# end points, located on a circle in the XY plane.
10
11# All the red lines start from the camera position, and will hence always be aligned with the
12# viewing direction, making them invisible.
13
14# The green lines starting points' positions are determined from the camera coordinate system, using
15# <code>camera()->worldCoordinatesOf()</code>. As a result, these points will seem to be fixed on
16# the screen, even when the camera is moved
17
18# Finally, the blue lines are classically defined in the world coordinate system, and will move with
19# the camera.
20
21# Beautiful Moire pattern can be obtained with a proper rotation.
22
23TEMPLATE = app
24TARGET   = frameTransform
25
26HEADERS  = frameTransform.h
27SOURCES  = frameTransform.cpp main.cpp
28
29include( ../examples.pri )
30