Files
computer-graphics/Hidden-lineRemoval/P2.cpp
T
2024-11-07 14:01:22 +08:00

36 lines
559 B
C++

// P2.cpp: implementation of the CP2 class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Test.h"
#include "P2.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CP2::CP2()
{
x=0;
y=0;
w=1;
}
CP2::~CP2()
{
}
CP2::CP2(double x,double y)
{
this->x=x;
this->y=y;
this->w=1;
}