The Complete SPRLIB & ANNLIB

transform

- project a point in 3D space onto a 2D plane (the screen) (LOCAL)

SYNOPSIS

int transform (xold, yold, zold, xnew, ynew)

ARGUMENTS

int xold The 3D x-coordinate.
int yold The 3D y-coordinate.
int zold The 3D z-coordinate.
int *xnew A pointer to the 2D x-coordinate.
int *ynew A pointer to the 2D y-coordinate.

RETURNS

TRUE in case of an error, FALSE if not.

FUNCTION

The function transforms a 3D-point to a 2D-point. It uses matrix3D (KOHONEN-DRAW-variables). First, znew is calculated; if znew + depth = 0.0, the function returns TRUE. Otherwise, the correctly calculated 2D-coordinates are returned through xnew and ynew.

SEE ALSO

koh_weight_draw

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998