fg_3Drotateobject()

Win32 DirectX Fastgraph/Light

Prototype

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

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

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

Description

The fg_3Drotateobject() function rotates an object by specifying the (x,y,z) components of a vector in the direction of the object rotation.

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_3Drotateobject() returns zero. It returns -1 if the vector's magnitude is too close to zero.

Restrictions

none

See also

fg_3Daxisangleobject(), fg_3Drollobject(), fg_3Drotate(), fg_3Drotaterightobject(), fg_3Drotateupobject(), fg_3Dsetobject()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.