fg_3Dgetpov()

Win32 DirectX Fastgraph/Light

Prototype

void fg_3Dgetpov (double *x, double *y, double *z, double *x_out, double *y_out, double *z_out);

Sub fg_3Dgetpov (x As Double, y As Double, z As Double, x_out As Double, y_out As Double, z_out As Double)

procedure fg_3Dgetpov (var x, y, z, x_out, y_out, z_out : double);

Description

The fg_3Dgetpov() function returns the viewer's position in 3D world space, along with the (x,y,z) components of the ViewOut vector. The ViewOut vector is a unit vector in the direction the viewer is facing.

Parameters

x receives the x coordinate of the viewer's position in 3D world space.

y receives the y coordinate of the viewer's position in 3D world space.

z receives the z coordinate of the viewer's position in 3D world space.

x_out receives the x component of the ViewOut unit vector.

y_out receives the y component of the ViewOut unit vector.

z_out receives the z component of the ViewOut unit vector.

Return value

none

Restrictions

none

See also

fg_3Dlookat(), fg_3Dpov()

Examples

Columns

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.