Lines Matching refs:normal
61 void sp_dt_ruler_snap_new_guide(SPDesktop *desktop, SPCanvasItem *guide, Geom::Point &event_dt, Geom::Point &normal);
91 static Geom::Point normal;
123 // calculate the normal of the guidelines when dragged from the edges of rulers.
133 // guidelines normal to gridlines
144 normal = normal_bl_to_tr;
146 normal = normal_tr_to_bl;
148 normal = Geom::Point(0.,1.);
152 normal = normal_bl_to_tr;
154 normal = normal_tr_to_bl;
156 normal = Geom::Point(1.,0.);
160 guide = sp_guideline_new(desktop->guides, NULL, event_dt, normal);
199 sp_dt_ruler_snap_new_guide(desktop, guide, event_dt, normal);
201 sp_guideline_set_normal(SP_GUIDELINE(guide), normal);
221 sp_dt_ruler_snap_new_guide(desktop, guide, event_dt, normal);
240 sp_repr_set_point(repr, "orientation", normal);
745 void sp_dt_ruler_snap_new_guide(SPDesktop *desktop, SPCanvasItem * /*guide*/, Geom::Point &event_dt, Geom::Point &normal)
759 Geom::Point normal_orig = normal;
760 m.guideFreeSnap(event_dt, normal, false, false);
761 // After snapping, both event_dt and normal have been modified accordingly; we'll take the normal (of the
762 // curve we snapped to) to set the normal the guide. And rotate it by 90 deg. if needed
764 if (normal != normal_orig) {
765 normal = Geom::rot90(normal);
769 normal = normal_orig; // we must restore the normal to it's original state