Annotation of researchv9/jerq/include/3d.h, revision 1.1

1.1     ! root        1: #define        ONE     16384           /* guarantee no overflow in xformp */
        !             2: typedef short fract;           /* fixed point scaled by ONE */
        !             3: typedef fract matrix[4][4];
        !             4: typedef short coord[4];
        !             5: typedef unsigned short angle;
        !             6: typedef struct point3{
        !             7:        fract x, y, z, w;
        !             8: }Hcoord;
        !             9: typedef struct Lpoint3{
        !            10:        long x, y, z, w;
        !            11: }Hcoordl;
        !            12: #define        PI      (angle)32768
        !            13: #define        mkangle(x)      cvtangle[x]
        !            14: extern angle cvtangle[];
        !            15: fract isin(), icos();
        !            16: long isqrt();
        !            17: #define        XAXIS   0
        !            18: #define        YAXIS   1
        !            19: #define        ZAXIS   2
        !            20: long dot();
        !            21: Hcoord cross();
        !            22: Hcoordl xformp();
        !            23: extern Bitmap *viewport;
        !            24: Hcoord hcoord();

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.