fg_3Drotate()

Win32 DirectX Fastgraph/Light

Prototype

int fg_3Drotate (double x_out, double y_out, double z_out);

Function fg_3Drotate (ByVal x_out As Double, ByVal y_out As Double, ByVal z_out As Double) As Long

function fg_3Drotate (x_out, y_out, z_out : double) : integer;

Description

The fg_3Drotate() function rotates the viewer's orientation by specifying the (x,y,z) components of a vector in the direction the viewer is facing.

Parameters

x_out is the x component of the vector.

y_out is the y component of the vector.

z_out is the z component of the vector.

Return value

If successful, fg_3Drotate() returns zero. It returns -1 if the vector's magnitude is too close to zero.

Restrictions

none

See also

fg_3Daxisangle(), fg_3Dlookat(), fg_3Dpov(), fg_3Droll(), fg_3Drotateobject(), fg_3Drotateright(), fg_3Drotateup()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.