List of all members.
Detailed Description
Definition at line 226 of file func.
Member Typedef Documentation
Definition at line 228 of file func.
Constructor & Destructor Documentation
inlib::func::in_polygon::in_polygon |
( |
| ) |
[inline] |
Definition at line 230 of file func.
inlib::func::in_polygon::in_polygon |
( |
const std::vector< point > & |
a_points | ) |
[inline] |
Definition at line 231 of file func.
virtual inlib::func::in_polygon::~in_polygon |
( |
| ) |
[inline, virtual] |
Definition at line 232 of file func.
inlib::func::in_polygon::in_polygon |
( |
const in_polygon & |
a_from | ) |
[inline] |
Definition at line 234 of file func.
:m_points(a_from.m_points)
{}
Member Function Documentation
bool inlib::func::in_polygon::in_domain |
( |
const point & |
| ) |
const [inline] |
Definition at line 242 of file func.
Definition at line 237 of file func.
{
m_points = a_from.m_points;
return *this;
}
const std::vector<point>& inlib::func::in_polygon::points |
( |
| ) |
const [inline] |
Definition at line 264 of file func.
bool inlib::func::in_polygon::set |
( |
const std::vector< point > & |
a_points | ) |
[inline] |
Definition at line 248 of file func.
{
m_points = a_points;
if(!m_points.size()) return false;
if((m_points.size()>=2) && (m_points[m_points.size()-1]!=m_points[0]) ) {
m_points.push_back(m_points[0]);
}
return true;
}
bool inlib::func::in_polygon::set |
( |
unsigned int |
a_index, |
|
|
const point & |
a_point |
|
) |
| [inline] |
Definition at line 258 of file func.
{
if(a_index>=m_points.size()) return false;
m_points[a_index] = a_point;
return true;
}
double inlib::func::in_polygon::value |
( |
const point & |
a_point | ) |
const [inline] |
Definition at line 243 of file func.
{
if(!m_points.size()) return 0;
return (inside(a_point,m_points)?1:0);
}
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/func