//-----------------------------------------------------------------------------
// NastVector2d.cpp
//-----------------------------------------------------------------------------

#include "NastVector2d.h"
#include "NastDebug.h"

#include <math.h>
#include <signal.h>		// Workaround fuer einen Bug in HP-Includefiles
#include <limits.h>

#ifdef _MSC_VER
#  include <float.h>
#endif

CNastVector2d::~CNastVector2d()
{
#ifdef NAST_DEBUG
    // In der Debugversion mit Muell ueberschreiben, damit man Fehler
    // bei der Verwendung schneller finden kann.
    m_x = DBL_MAX;
    m_y = DBL_MAX;
#endif
}

// ----------------------------------------------------------------------------
//                                    Debug
// ----------------------------------------------------------------------------

void 
CNastVector2d::debugDump( CNastDumpContext &dumpContext ) const
{
    CNastObject::debugDump( dumpContext );
    dumpContext << "\tCNastVector2d";
    dumpContext << "\t\t\t("<< m_x << "\t" << m_y << ")\n";
}

void 
CNastVector2d::assertValid() const
{
    // zuerst einmal AssertValid der Basisklasse aufrufen
    CNastObject::assertValid(); 
    //  ansonsten gibts momentan nichts zu tun
}


