Скачиваний:
14
Добавлен:
01.05.2014
Размер:
1.18 Кб
Скачать
// TPolygon.h: interface for the TPolygon class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TPOLYGON_H__49008282_E0FF_41B7_BF6A_0C2AA2FC7631__INCLUDED_)
#define AFX_TPOLYGON_H__49008282_E0FF_41B7_BF6A_0C2AA2FC7631__INCLUDED_

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

#include "TGeometryObj.h"
#include "Vertex.h"

class TPolygon  : public TGeometryObj
{
private:

    int _size;


public:
	void Destroy();
	void Update(Vertex* v);
    Vertex* _v;
    Vertex* setV(Vertex* v);
    Vertex* insert(TPoint& p);
    /*разделение полигона вдоль хорды от текущей точки
      до точки b*/
    TPolygon* split(Vertex* b);
	void split_ver2(Vertex* b);

    void resize(void);	
	TPolygon(Vertex*);
	virtual ~TPolygon();
    TPolygon(void);
    Vertex* v(void);
    Vertex* neighbor(int rotation);
    Vertex* advance(int rotation);
    int size(void);
    TPoint point(void);
    TPolygon(TPolygon& p);
	//    TTwoCoord* GetCoords(int& n);
	int GetType(void);
    Vertex* cw(void);


};

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