📄 matrix.h
字号:
#if !defined(AFX_MATRIX_H__FE08AB57_C9B9_456C_8702_FFBB5713516B__INCLUDED_)
#define AFX_MATRIX_H__FE08AB57_C9B9_456C_8702_FFBB5713516B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Matrix.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMatrix window
class CMatrix : public CEdit
{
// Construction
public:
CMatrix(float x, float y);
// Attributes
public:
//二维矩阵
float Matrix[3][1];
// Operations
public:
//旋转
//参数:int ox, int oy 旋转点, int ct 旋转角度
POINT Roat(float ox, float oy, float ct);
//比例
//参数:int sx x轴比例系数, int sy y轴比例系数
POINT Resize(float sx, float sy);
//平移
//参数:int dx x轴偏移量, int dy y轴偏移量
POINT Move(float dx, float dy);
//对称
POINT Symmetry(float x, float y);
//矩阵相称
void MatMultiply(float **a, int ay, int ax, float **b, int bx, float **c);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMatrix)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMatrix();
// Generated message map functions
protected:
//{{AFX_MSG(CMatrix)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MATRIX_H__FE08AB57_C9B9_456C_8702_FFBB5713516B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -