matrix.h
来自「游戏编程精华01-含有几十个游戏编程例子」· C头文件 代码 · 共 15 行
H
15 行
/////////////////////////////////////////////////////////////////////////////////// Matrix.h//// Demonstrates template metaprogramming for matrix operations//// Defines the following template functions, where MtxType is the matrix// type (e.g. matrix33) and N is the matrix size.//// IdentityMtxT( MtxType, Mtx, N ) make Mtx the identity matrix// InitMtxT ( MtxType, Mtx, N, F, Init ) initialize Mtx with Init// TransMtxT ( MtxType, Mtx, N ) transpose Mtx// MultMtxT ( MtxType, r, a, b, N ) compute r = a * b//// Copyright
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?