home *** CD-ROM | disk | FTP | other *** search
- *********************
-
- FUNCTION Matrix3
-
- PARAMETERS _matbase_y, _matbase_z, _matx, _maty, _matz
-
- IF PCOUNT() < 5 .OR. (_matbase_y < 0 .OR. _matbase_z < 0 .OR. _matx < 0 .OR. _maty < 0 .OR. _matz < 0)
- * Error due to too few parameters or there is a negative
- * number in one of the parameters
- RETURN(0)
- ENDIF
-
- PRIVATE _retvalue1, _retvalue2
-
- _retvalue1 = ((_matx - 1) * _matbase_y) * _matbase_z
- _retvalue2 = (_maty - 1) * _matbase_y
- RETURN(_retvalue1 + _retvalue2 + _matz)
-
- * End of File