fg_3Dbehindviewer()

Win32 DirectX Fastgraph/Light

Prototype

int fg_3Dbehindviewer (double x, double y, double z, double tolerance);

Function fg_3Dbehindviewer (ByVal x As Double, ByVal y As Double, ByVal z As Double, ByVal tolerance As Double) As Long

function fg_3Dbehindviewer (x, y, z, tolerance : double) : integer;

Description

The fg_3Dbehindviewer() function determines if the specified 3D world space point is visible from the viewer's current position.

Parameters

x is the x coordinate of the point in 3D world space.

y is the y coordinate of the point in 3D world space.

z is the z coordinate of the point in 3D world space.

tolerance defines the visibility extent. If negative, tolerance specifies the distance behind the viewer beyond which points are invisible. If positive, tolerance specifies the distance in front of the viewer beyond which points are visible. The value of tolerance is often zero.

Return value

The return value will be 1 if the specified point is visible, or zero if it is not visible.

Restrictions

none

See also

fg_3Dlookat(), fg_3Dpov()

Examples

Columns

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.