Скачиваний:
16
Добавлен:
01.05.2014
Размер:
1.04 Кб
Скачать
// TPoint.h: interface for the TPoint class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TPOINT_H__950A1BCF_4225_4779_AC5A_605FA0021A81__INCLUDED_)
#define AFX_TPOINT_H__950A1BCF_4225_4779_AC5A_605FA0021A81__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#include "TGeometryObj.h"


class TPoint  : public TGeometryObj
{
public:
    TPoint(double _x = 0.0, double _y = 0.0);
	virtual ~TPoint();
    int x;
    int y;
    int classify(TPoint & p0, TPoint & p1);
    TPoint operator+(TPoint& p);
    TPoint operator-(TPoint& p);
    friend TPoint operator*(double s, TPoint& p);
    double operator[](int i);
    int operator==(TPoint& p);
    int operator!=(TPoint& p);
    int operator<(TPoint& p);
    int operator>(TPoint& p);
    double length(void);
//    TTwoCoord* GetCoords(int &n);
    int GetType(void);
	TPoint* p;
	BOOL used;


};

#endif // !defined(AFX_TPOINT_H__950A1BCF_4225_4779_AC5A_605FA0021A81__INCLUDED_)
Соседние файлы в папке ConvexHull_1