Searched defs:pt (Results 1 - 25 of 48) sorted by relevance

12

/inkscape/src/
H A Dperspective-line.cpp17 PerspectiveLine::PerspectiveLine (Geom::Point const &pt, Proj::Axis const axis, Persp3D *persp) : argument
18 Line (pt, persp3d_get_VP(persp, axis).affine(), true)
H A Dproj_pt.cpp21 pt[0] = 0.0;
22 pt[1] = 0.0;
23 pt[2] = 1.0;
34 pt[0] = g_ascii_strtod(coords[0], NULL);
35 pt[1] = g_ascii_strtod(coords[1], NULL);
36 pt[2] = g_ascii_strtod(coords[2], NULL);
42 if (fabs(pt[2]) < 1E-6 || pt[2] == 1.0)
44 pt[0] /= pt[
62 << pt[2]; local
105 << pt[3]; local
[all...]
H A Dtransf_mat_3x4.h27 Pt3 preimage (Geom::Point const &pt, double coord = 0, Axis = Z);
28 void set_image_pt (Proj::Axis axis, Proj::Pt2 const &pt);
41 Geom::Point pt(tmat[0][axis], tmat[1][axis]);
42 double rad = Geom::L2(pt);
60 inline void set_column (Proj::Axis axis, Proj::Pt2 pt) { argument
61 tmat[0][axis] = pt[0];
62 tmat[1][axis] = pt[1];
63 tmat[2][axis] = pt[2];
H A Dline-geometry.h35 Geom::Point closest_to(Geom::Point const &pt); // returns the point on the line closest to pt
46 double lambda (Geom::Point const pt);
48 return (pt + lambda * Geom::unit_vector (v_dir)); }
57 Geom::Point pt; member in class:Box3D::Line
69 bool lies_in_quadrangle (Geom::Point const &A, Geom::Point const &B, Geom::Point const &C, Geom::Point const &D, Geom::Point const &pt);
72 Geom::Point const &pt, Geom::Point const &dir);
84 out_file << "Start: " << in_line.pt << " Direction: " << in_line.v_dir;
H A Dproj_pt.h25 Pt2 () { pt[0] = 0; pt[1] = 0; pt[2] = 1.0; } // we default to (0 : 0 : 1)
26 Pt2 (double x, double y, double w) { pt[0] = x; pt[1] = y; pt[2] = w; }
27 Pt2 (Geom::Point const &point) { pt[0] = point[Geom::X]; pt[1] = point[Geom::Y]; pt[2] = 1; }
32 return pt[inde
88 double pt[3]; member in class:Proj::Pt2
155 double pt[4]; member in class:Proj::Pt3
[all...]
H A Dcontext-fns.cpp77 Geom::Point const &pt, Geom::Point const &center, int state)
93 Geom::Point delta = pt - center;
169 p[1] = pt;
195 p[1] = pt;
196 snappoint = m.freeSnap(Inkscape::SnapCandidatePoint(pt, Inkscape::SNAPSOURCE_NODE_HANDLE));
76 snap_rectangular_box(SPDesktop const *desktop, SPItem *item, Geom::Point const &pt, Geom::Point const &center, int state) argument
H A Dselcue.cpp212 boost::optional<Geom::Point> pt = layout->baselineAnchorPoint(); local
213 if (pt) {
223 SP_CTRL(baseline_point)->moveto((*pt) * item->i2dt_affine());
H A Dtransf_mat_3x4.cpp64 TransfMat3x4::preimage (Geom::Point const &pt, double coord, Proj::Axis axis) { argument
67 double v[3] = { pt[Geom::X], pt[Geom::Y], 1.0 };
83 TransfMat3x4::set_image_pt (Proj::Axis axis, Proj::Pt2 const &pt) { argument
86 tmat[i][axis] = pt[i];
H A Dsnap-candidate.h74 void addOrigin(Geom::Point pt) { _origins_and_vectors.push_back(std::make_pair(pt, false)); } argument
H A Dline-geometry.cpp32 pt(start)
39 d0 = Geom::dot(normal, pt);
43 pt(line.pt),
51 pt = line.pt;
65 Geom::Coord lambda = (line.d0 - Geom::dot(pt, line.normal)) / denom;
66 return pt + lambda * v_dir;
73 d0 = Geom::dot(normal, pt);
76 Geom::Point Line::closest_to(Geom::Point const &pt) argument
84 lambda(Geom::Point const pt) argument
124 lies_in_quadrangle(Geom::Point const &A, Geom::Point const &B, Geom::Point const &C, Geom::Point const &D, Geom::Point const &pt) argument
140 side_of_intersection(Geom::Point const &A, Geom::Point const &B, Geom::Point const &C, Geom::Point const &D, Geom::Point const &pt, Geom::Point const &dir) argument
[all...]
H A Ddesktop-events.cpp387 Geom::Point pt = motion_dt - guide->getPoint(); local
388 Geom::Angle angle(pt);
469 Geom::Point pt = event_dt - guide->getPoint(); local
470 Geom::Angle angle(pt);
H A Dsp-ellipse.cpp541 Geom::Point pt = this->getPointAtAngle(angle) * i2dt; local
542 p.push_back(Inkscape::SnapCandidatePoint(pt, Inkscape::SNAPSOURCE_ELLIPSE_QUADRANT_POINT, Inkscape::SNAPTARGET_ELLIPSE_QUADRANT_POINT));
555 Geom::Point pt = Geom::Point(cx, cy) * i2dt; local
556 p.push_back(Inkscape::SnapCandidatePoint(pt, Inkscape::SNAPSOURCE_NODE_CUSP, Inkscape::SNAPTARGET_NODE_CUSP));
560 Geom::Point pt = Geom::Point(cx, cy) * i2dt; local
561 p.push_back(Inkscape::SnapCandidatePoint(pt, Inkscape::SNAPSOURCE_OBJECT_MIDPOINT, Inkscape::SNAPTARGET_OBJECT_MIDPOINT));
568 Geom::Point pt = this->getPointAtAngle(this->start) * i2dt; local
569 p.push_back(Inkscape::SnapCandidatePoint(pt, Inkscape::SNAPSOURCE_NODE_CUSP, Inkscape::SNAPTARGET_NODE_CUSP));
574 Geom::Point pt = this->getPointAtAngle(this->end) * i2dt; local
575 p.push_back(Inkscape::SnapCandidatePoint(pt, Inkscap
[all...]
H A Dpersp3d.cpp107 Proj::Pt2 pt (value);
108 Proj::Pt2 ptn ( pt[0]*scale_x, pt[1]*scale_y, pt[2] );
115 Proj::Pt2 pt (value);
116 Proj::Pt2 ptn ( pt[0]*scale_x, pt[1]*scale_y, pt[2] );
123 Proj::Pt2 pt (value);
124 Proj::Pt2 ptn ( pt[
248 Proj::Pt2 pt = perspective_impl->tmat.column( Proj::X ); local
250 os << pt[0] * scale_x << " : " << pt[1] * scale_y << " : " << pt[2]; local
254 Proj::Pt2 pt = perspective_impl->tmat.column( Proj::Y ); local
256 os << pt[0] * scale_x << " : " << pt[1] * scale_y << " : " << pt[2]; local
260 Proj::Pt2 pt = perspective_impl->tmat.column( Proj::Z ); local
262 os << pt[0] * scale_x << " : " << pt[1] * scale_y << " : " << pt[2]; local
266 Proj::Pt2 pt = perspective_impl->tmat.column( Proj::W ); local
268 os << pt[0] * scale_x << " : " << pt[1] * scale_y << " : " << pt[2]; local
279 persp3d_get_PL_dir_from_pt(Persp3D *persp, Geom::Point const &pt, Proj::Axis axis) argument
288 persp3d_get_finite_dir(Persp3D *persp, Geom::Point const &pt, Proj::Axis axis) argument
[all...]
/inkscape/src/live_effects/
H A Dlpe-circle_with_radius.cpp47 Geom::Point pt = path_in[0].finalPoint(); local
49 double radius = Geom::L2(pt - center);
H A Dlpe-knot.h35 Geom::Point pt; member in struct:Inkscape::LivePathEffect::LPEKnotNS::CrossingPoint
H A Dlpe-rough-hatches.cpp44 Point pt; member in struct:Inkscape::LivePathEffect::LevelCrossing
53 return ( a.pt[Y] < b.pt[Y] );// a.pt[X] == b.pt[X] since we are supposed to be on the same level...
54 //return ( a.pt[X] < b.pt[X] || ( a.pt[X] == b.pt[X] && a.pt[
[all...]
/inkscape/src/ui/dialog/
H A Dknot-properties.cpp113 void KnotPropertiesDialog::showDialog(SPDesktop *desktop, const SPKnot *pt, Glib::ustring const unit_name) argument
117 dialog->_setKnotPoint(pt->position(), unit_name);
118 dialog->_setPt(pt);
184 void KnotPropertiesDialog::_setPt(const SPKnot *pt) argument
186 _knotpoint = const_cast<SPKnot *>(pt);
H A Dlpe-powerstroke-properties.cpp114 void PowerstrokePropertiesDialog::showDialog(SPDesktop *desktop, Geom::Point knotpoint, const Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity *pt) argument
120 dialog->_setPt(pt);
182 void PowerstrokePropertiesDialog::_setPt(const Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity *pt) argument
184 _knotpoint = const_cast<Inkscape::LivePathEffect::PowerStrokePointArrayParamKnotHolderEntity *>(pt);
H A Dlpe-fillet-chamfer-properties.cpp124 FilletChamferPointArrayParamKnotHolderEntity *pt,
134 dialog->_set_pt(pt);
236 FilletChamferPointArrayParamKnotHolderEntity *pt)
240 pt);
121 showDialog( SPDesktop *desktop, Geom::Point knotpoint, const Inkscape::LivePathEffect:: FilletChamferPointArrayParamKnotHolderEntity *pt, bool use_distance, bool aprox_radius) argument
234 _set_pt( const Inkscape::LivePathEffect:: FilletChamferPointArrayParamKnotHolderEntity *pt) argument
/inkscape/src/live_effects/parameter/
H A Dpowerstrokepointarray.cpp79 Geom::Point pt = _vector[i]; local
80 Geom::Point position = last_pwd2.valueAt(pt[Geom::X]) + pt[Geom::Y] * last_pwd2_normal.valueAt(pt[Geom::X]);
/inkscape/src/ui/tools/
H A Darc-tool.cpp329 void ArcTool::drag(Geom::Point pt, guint state) { argument
360 Geom::Rect r = Inkscape::snap_rectangular_box(desktop, this->arc, pt, this->center, state);
375 Geom::Point new_dir = pt * i2d - c;
H A Drect-tool.cpp369 void RectTool::drag(Geom::Point const pt, guint state) { argument
393 Geom::Rect const r = Inkscape::snap_rectangular_box(desktop, this->rect, pt, this->center, state);
/inkscape/src/trace/potrace/
H A Dinkscape-potrace.cpp146 const potrace_dpoint_t *pt = curve->c[curve->n - 1]; local
151 double x2 = pt[2].x;
152 double y2 = pt[2].y;
172 pt = curve->c[i];
173 x0 = pt[0].x;
174 y0 = pt[0].y;
175 x1 = pt[1].x;
176 y1 = pt[1].y;
177 x2 = pt[2].x;
178 y2 = pt[
[all...]
/inkscape/src/livarot/
H A DPathSimplify.cpp76 Geom::Point &pt, double current, int lev, double st, double et)
89 Geom::Point const mp = pt - m;
95 nle = RecDistanceToCubic(iS, hisD, m, md, pt, current, lev - 1, st, mt);
99 nle = RecDistanceToCubic(m, md, iE, hieD, pt, current, lev - 1, mt, et);
106 nle = RecDistanceToCubic(iS, hisD, m, md, pt, current, lev - 1, st, mt);
110 nle = RecDistanceToCubic(m, md, iE, hieD, pt, current, lev - 1, mt, et);
120 static double DistanceToCubic(Geom::Point const &start, PathDescrCubicTo res, Geom::Point &pt) argument
122 Geom::Point const sp = pt - start;
123 Geom::Point const ep = pt - res.p;
601 Geom::Point pt(dat
979 pt; local
1116 RaffineTk(Geom::Point pt, Geom::Point p0, Geom::Point p1, Geom::Point p2, Geom::Point p3, double it) argument
[all...]
/inkscape/src/display/
H A Ddrawing-text.cpp525 Geom::Point pt = g->_ctm.translation() * rotinv; local
526 if (pt[Geom::X] < leftmost) {
527 leftmost = pt[Geom::X];
535 start_y = pt[Geom::Y];
537 else if (fabs(pt[Geom::Y] - start_y) > 1.0e-6) {

Completed in 45 milliseconds

12