Files
2024-11-07 18:15:58 +08:00

47 lines
709 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.0;
y=0.0;
w=1.0;
c=CRGB(0.0,0.0,0.0);
}
CP2::~CP2()
{
}
CP2::CP2(double x,double y)
{
this->x=x;
this->y=y;
this->w=1.0;
this->c=CRGB(1.0,1.0,1.0);
}
CP2::CP2(double x,double y,CRGB c)
{
this->x=x;
this->y=y;
this->w=1.0;
this->c=c;
}