|
// ListNodeOfCTriangle.cpp: implementation of the CListNodeOfCTriangle class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ListNodeOfCTriangle.h"
#include "MMath.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CListNodeOfCTriangle::CListNodeOfCTriangle( const CTriangle& P) : data(P), nextPtr(0)
{
}
CListNodeOfCTriangle::~CListNodeOfCTriangle()
{
}
CTriangle CListNodeOfCTriangle::GetData() const
{
return data;
}
bool CListNodeOfCTriangle::operator==(CListNodeOfCTriangle& rhs)
{
if(*this==rhs)
return true;
return false;
}
bool CListNodeOfCTriangle::operator!=(CListNodeOfCTriangle& rhs)
{
return !(*this==rhs);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.