⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transmatrix.h

📁 图形绘制算法实现、区域填充算法的实现过程、图形裁减算法的实现等
💻 H
字号:
// TransMatrix.h: interface for the TransMatrix class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TRANSMATRIX_H__39FCC867_A865_43B2_B6AF_D2584F398DDC__INCLUDED_)
#define AFX_TRANSMATRIX_H__39FCC867_A865_43B2_B6AF_D2584F398DDC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

typedef float Matrix3x3[3][3];

class TransMatrix  
{
public:
	Matrix3x3 theMatrix;
	void Rotate2(double angle, POINT RotatePt);
	void Matrix3x3SetIdentity(Matrix3x3 m);
	void Matrix3x3PreMultiply(Matrix3x3 a, Matrix3x3 b);
	void TransformPoints(int npts, POINT* pts);
	void Translate2(int tx, int ty);
	void Scale2(float sx, float sy, POINT scalePt);

	TransMatrix();
	virtual ~TransMatrix();

};

#endif // !defined(AFX_TRANSMATRIX_H__39FCC867_A865_43B2_B6AF_D2584F398DDC__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -