line-snapper.cpp revision bbbe9eebaeb94bab65295acc609a7c98544c4f4c
#include "libnr/nr-values.h"
#include "libnr/nr-point-fns.h"
#include "line-snapper.h"
#include "snapped-line.cpp"
{
}
bool const &f,
{
/* Snap along x (i.e. to vertical lines) */
/* Snap along y (i.e. to horizontal lines) */
}
bool const &/*f*/,
ConstraintLine const &c,
{
/* Get the lines that we will try to snap to */
/* Normal to the line we're trying to snap along */
/* Constant term of the line we're trying to snap along */
/* Try to intersect this line with the target line */
Geom::IntersectorKind const k = Geom::line_intersection(n.to_2geom(), q, component_vectors[i->first].to_2geom(), i->second, t_2geom);
if (k == Geom::intersects) {
//Store any line that's within snapping range
if (dist < getDistance()) {
//SnappedLine dummy = SnappedLine(t, dist, c.getDirection(), t);
//sc.infinite_lines.push_back(dummy);
}
}
}
}
/*
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 :