cogip::cogip_defs::Polygon< N > Class Template Reference

A polygon defined by a list of coordinates. More...

Detailed Description

template<size_t N>
class cogip::cogip_defs::Polygon< N >

A polygon defined by a list of coordinates.

Definition at line 26 of file Polygon.hpp.

#include <Polygon.hpp>

+ Inheritance diagram for cogip::cogip_defs::Polygon< N >:
+ Collaboration diagram for cogip::cogip_defs::Polygon< N >:

Public Member Functions

int point_index (const Coords &p) const
 Find a point in this polygon and return its index. More...
 

Member Function Documentation

◆ point_index()

template<size_t N>
int cogip::cogip_defs::Polygon< N >::point_index ( const Coords p) const
inline

Find a point in this polygon and return its index.

Returns
point index if found, -1 otherwise
Parameters
[in]p[in] point to find

Definition at line 30 of file Polygon.hpp.


The documentation for this class was generated from the following file: