?? matrix.h
字號:
// Matrix.h: interface for the CMatrix class.
//
// 說明:
// 功能: 4維矩陣類
//
// 創(chuàng)建時間: 2004.5
// 作者: 悅鑫 0004170140
// 目的: 南京理工大學畢業(yè)設計 基于光線跟蹤算法的場景繪制研究
// 參考書目: <<VC++繪圖程序設計技巧與實例>>
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MATRIX_H__B8641561_AF5C_4B36_AFD7_BC6B656521AE__INCLUDED_)
#define AFX_MATRIX_H__B8641561_AF5C_4B36_AFD7_BC6B656521AE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CVector;
class CMatrix //4維矩陣類
{
public:
CMatrix();//默認構造函數(shù)
CMatrix(CMatrix &mat);//拷貝構造函數(shù)
~CMatrix();
void Empty();//初始化
double GetOffset(int i,int y) const;
void SetOffset(int i,int y,double x);
CMatrix operator + (const CMatrix &mat) const;//重載運算符
CMatrix operator - (const CMatrix &mat) const;
CMatrix operator * (const CMatrix &mat) const;
void operator += (const CMatrix &mat);
void operator -= (const CMatrix &mat);
void operator *= (const CMatrix &mat);
private:
double M[4][4]; //分量
};
#endif // !defined(AFX_MATRIX_H__B8641561_AF5C_4B36_AFD7_BC6B656521AE__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -