Files
envi-code/SourceCode/Code2026/tg_shs/inc/Mep/XRect.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

31 lines
916 B
C++

// XRect.h: interface for the XRect class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_XRECT_H__55DC5F29_9F72_4884_AFFF_EC35E3D8588C__INCLUDED_)
#define AFX_XRECT_H__55DC5F29_9F72_4884_AFFF_EC35E3D8588C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class TELAPI XRect
{
public:
XPoint m_ptS, m_ptE;
XPoint lowLeft, upRight;
XPoint lowRight, upLeft;
double nWidth, nHeight;
double m_nAngle, m_BlkAngle, x_angle, y_angle;
XRect(XPoint ptS, XPoint ptE, double nAngle);
void AsPoly2D(XPoly2D &poly);
void GetAngle(ads_real sel_angle/*用户输入的行向角*/,
ads_real m_angle/*起点与终点连线夹角*/,
ads_real& x_angle/*布置行向角*/,
ads_real& y_angle/*布置列向角*/,
ads_real& blk_angle/*块插入方向角*/);
};
#endif // !defined(AFX_XRECT_H__55DC5F29_9F72_4884_AFFF_EC35E3D8588C__INCLUDED_)