sp-guide.h revision a4030d5ca449e7e384bc699cd249ee704faaeab0
#ifndef SP_GUIDE_H
#define SP_GUIDE_H
/*
* SPGuide
*
* A guideline
*
* Copyright (C) Lauris Kaplinski 2000
* Copyright (C) Johan Engelen 2007
*
*/
#include <vector>
#include "display/display-forward.h"
#include "sp-object.h"
#include "sp-guide-attachment.h"
#define SP_TYPE_GUIDE (sp_guide_get_type())
/* Represents the constraint on p that dot(g.direction, p) == g.position. */
inline double angle() const { return std::atan2( - normal_to_line[Geom::X], normal_to_line[Geom::Y] ); };
};
struct SPGuideClass {
};
void sp_guide_pt_pairs_to_guides(SPDesktop *dt, std::list<std::pair<Geom::Point, Geom::Point> > &pts);
void sp_guide_set_normal(SPGuide const &guide, Geom::Point const normal_to_line, bool const commit);
#endif /* !SP_GUIDE_H */
/*
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:fileencoding=utf-8:textwidth=99 :