2014-07-22 20:37:29 +04:00
|
|
|
#include "svcurve.h"
|
|
|
|
|
|
|
|
SvCurve::SvCurve()
|
|
|
|
{
|
|
|
|
}
|
2014-07-25 18:44:11 +04:00
|
|
|
|
|
|
|
void SvCurve::addPoint(SvPoint *point)
|
|
|
|
{
|
|
|
|
m_points.push_back(point);
|
|
|
|
}
|
|
|
|
|
2014-07-28 00:04:18 +04:00
|
|
|
bool SvCurve::hasPoint(SvPoint *point)
|
|
|
|
{
|
|
|
|
foreach (SvPoint *item, m_points) {
|
|
|
|
if (point == item) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2014-07-25 18:44:11 +04:00
|
|
|
SvCurve *SvCurve::cut(SvPoint *point)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|