Lines Matching defs:line
12 #include "line-geometry.h"
27 * Draw a line beginning at 'start'. If is_endpoint is true, use 'vec' as the endpoint
28 * of the segment. Otherwise interpret it as the direction of the line.
42 Line::Line(Line const &line):
43 pt(line.pt),
44 v_dir(line.v_dir),
45 normal(line.normal),
46 d0(line.d0)
50 Line &Line::operator=(Line const &line) {
51 pt = line.pt;
52 v_dir = line.v_dir;
53 normal = line.normal;
54 d0 = line.d0;
59 boost::optional<Geom::Point> Line::intersect(Line const &line) {
60 Geom::Coord denom = Geom::dot(v_dir, line.normal);
65 Geom::Coord lambda = (line.d0 - Geom::dot(pt, line.normal)) / denom;
78 /* return the intersection of this line with a perpendicular line passing through pt */
89 // pt lies on the line and thus skip the following test
92 g_warning ("Point does not lie on line.\n");
194 // perspective line lies outside the canvas
198 Line line (e.first, e.second);
199 return this->intersect (line);
218 SPCtrlLine *line = ControlManager::getManager().createControlLine(desktop->getControls(), p1, p2);
219 line->setRgba32(rgba);
220 sp_canvas_item_show(line);