GINO Graphics Suite - GINO v9.0  

gViewTurn

Syntax

[C/C++:]
void gViewTurn(float xr, float yr, float zr, float dx, float dy, float dz, float angle);
[F90:]
subroutine gViewTurn(xr, yr, zr, dx, dy, dz, angle)
real, intent(in) :: xr,yr,zr,dx,dy,dz,angle

Arguments

xr,yr,zr
Origin of rotation axis in space coordinates

dx,dy,dz
Rotation axis vector

angle
Angle of rotation in degrees

Description

The routine gViewTurn() rotates the current view direction and view centre about an arbitrary 3-D rotation axis. The rotation axis points in the direction (dx,dy,dz) and goes through the point (xr,yr,zr). The view is rotated in a right-handed sense with respect to the rotation axis by an angle in degrees specified by angle.

Rotating the line of sight has the side-effect or modifying the view-up direction in most circumstances.

If a zero rotation axis vector is specified, an error message is output and no further action is taken.

Unlike gViewRotate(), gViewTurn() can rotate a parallel view.

See Also

gViewTurn Usage
gSetViewUpDirection
gViewRotate