Go to the documentation of this file.00001
00002 #ifndef gtrl_polygon_h_
00003 #define gtrl_polygon_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007
00008
00009
00010
00011 #include <vcl_vector.h>
00012 #include <gtrl/gtrl_vertex.h>
00013
00014 class gtrl_polygon
00015 {
00016 public:
00017 gtrl_polygon( const vcl_vector<gtrl_vertex_sptr> ps);
00018
00019 int size() const { return ps_.size(); }
00020 gtrl_vertex_sptr operator[]( const int i) const { return ps_[i]; }
00021
00022
00023 bool inside( const gtrl_vertex_sptr point) const;
00024
00025 protected:
00026 vcl_vector<gtrl_vertex_sptr> ps_;
00027 };
00028
00029 #endif // gtrl_polygon_h_