snapped-point.cpp revision 573d0e4a67c8950fdcc6bafca3ac9fd20a4536e6
/**
* \file src/snapped-point.cpp
* \brief SnappedPoint class.
*
* Authors:
* Mathieu Dimanche <mdimanche@free.fr>
* Diederik van Lierop <mail@diedenrezi.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information.
*/
#include "snapped-point.h"
// overloaded constructor
{
_at_intersection = false;
_second_tolerance = 0;
_second_always_snap = false;
}
Inkscape::SnappedPoint::SnappedPoint(NR::Point p, NR::Coord d, NR::Coord t, bool a, bool at_intersection, NR::Coord d2, NR::Coord t2, bool a2)
{
}
{
_tolerance = 0;
_always_snap = false;
_at_intersection = false;
_second_tolerance = 0;
_second_always_snap = false;
}
{
}
{
return _distance;
}
{
return _tolerance;
}
{
return _always_snap;
}
{
return _second_distance;
}
{
return _second_tolerance;
}
{
return _second_always_snap;
}
{
return _point;
}
// search for the closest snapped point
{
bool success = false;
result = *i;
success = true;
}
}
return success;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :