transmatrix.h

来自「图形绘制算法实现、区域填充算法的实现过程、图形裁减算法的实现等」· C头文件 代码 · 共 31 行

H
31
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?