Files
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

45 lines
1.0 KiB
C++

// MNBigMat.h
// Created by Steve Anderson, Nov. 22 1996.
// BigMatrix is for when I need good old-fashioned mxn matrices.
// Classes:
// BigMatrix
#ifndef __MN_BIGMAT_H_
#define __MN_BIGMAT_H_
#define BIGMAT_MAX_SIZE 10000
class BigMatrix {
public:
int m, n;
float *val;
BigMatrix () { val=NULL; m=0; n=0; }
DllExport BigMatrix (int mm, int nn);
DllExport BigMatrix (const BigMatrix & from);
~BigMatrix () { Clear (); }
DllExport void Clear ();
DllExport int SetSize (int mm, int nn);
DllExport float *operator[](int i) const;
DllExport BigMatrix & operator= (const BigMatrix & from);
DllExport void SetTranspose (BigMatrix & trans) const;
DllExport float Invert();
DllExport void Identity ();
// Debugging functions:
DllExport void Randomize (float scale);
DllExport void MNDebugPrint ();
// Do not use -- does nothing. (Replaced by MNDebugPrint.)
DllExport void dump (FILE *fp);
};
DllExport extern BOOL BigMatMult (BigMatrix & a, BigMatrix & b, BigMatrix &c);
#endif