The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:procedure SetViewAngles (vax, vaz: double);

The procedure SetViewAngles sets both viewing angles at once. This is especially important in situations where a rotation has to be performed by a combination of both viewing angles. Setting the viewing angles by using subsequent calls to ViewAngleX  and ViewAngleZ  would trigger a redraw action between these two calls, thus introducing a short jitter. The parameters vax and vaz determine the rotation angles about the x- and the z-axis and may assume values between 0 and 360 degrees. Larger values will be automatically mapped into this range.

Hint: Please note that the z-axis is always perpendicular to the base plane of the 3D surface, while the x-axis always lies in the plane of the screen.

Last Update: 2012-Oct-20