// Poligon.h: interface for the CPoligon class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_POLIGON_H__1489C19D_FCF4_414D_B7AD_DF2D293603BA__INCLUDED_) #define AFX_POLIGON_H__1489C19D_FCF4_414D_B7AD_DF2D293603BA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "Point.h" #define MAX_DIM 30 class CPoligon { public: int n; // number of Points CPoint* p_point; CPoligon(); CPoligon::sides(); // Computes the sides of the polygon CPoligon::angles(); // Computes the angles of the polygon CPoligon(int n_sides); bool CPoligon::ifSquare(); // checks if square virtual ~CPoligon(); double side_length[MAX_DIM]; double angle_values[MAX_DIM]; // in radians. }; #endif // !defined(AFX_POLIGON_H__1489C19D_FCF4_414D_B7AD_DF2D293603BA__INCLUDED_)