t_line.cpp

来自「tin的生成,速度非常快.TIN10000point只用1分36秒」· C++ 代码 · 共 40 行

CPP
40
字号
// T_line.cpp: implementation of the T_line class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "tin2.h"
#include "T_line.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

T_line::T_line()
{
	p0=-1;
	p1=-1;
	useCount=0;

}

T_line::~T_line()
{

}

bool operator==(T_line line0,T_line line1)
{
	if(line0.p0==line1.p0&&line0.p1==line1.p1)
		return true;
	if(line0.p0==line1.p1&&line0.p1==line1.p0)
		return true;
	return false;
}

⌨️ 快捷键说明

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