Searched refs:ray (Results 1 - 17 of 17) sorted by relevance

/inkscape/src/2geom/
H A Dpath-sink.cpp88 arcTo(e.ray(X), e.ray(Y), e.rotationAngle(), false, false, e.pointAt(M_PI));
89 arcTo(e.ray(X), e.ray(Y), e.rotationAngle(), false, false, s);
H A Dellipse.cpp104 Point p(ray(X) * cosrot + center(X), ray(X) * sinrot + center(Y));
111 Affine ret = Scale(ray(X), ray(Y)) * Rotate(_angle);
118 if (ray(X) == 0 || ray(Y) == 0) {
121 Affine ret = Translate(-center()) * Rotate(-_angle) * Scale(1/ray(X), 1/ray(Y));
151 extremes[X][0] = std::atan2( -ray(Y) * sinrot, ray(
[all...]
H A Dellipse.h54 * the SVG style representation: center, rays and angle between the +X ray
116 /// Set the angle the X ray makes with the +X axis.
123 /// Get one ray of the ellipse.
124 Coord ray(Dim2 d) const { return _rays[d]; } function in class:Geom::Ellipse
125 /// Get the angle the X ray makes with the +X axis.
127 /// Get the point corresponding to the +X ray of the ellipse.
129 /// Get the point corresponding to the +X ray of the ellipse.
163 LineSegment majorAxis() const { return ray(X) >= ray(Y) ? axis(X) : axis(Y); }
164 LineSegment minorAxis() const { return ray(
[all...]
H A Delliptical-arc.cpp130 extremes[X][0] = std::atan2( -ray(Y) * sinrot, ray(X) * cosrot );
132 extremes[Y][0] = std::atan2( ray(Y) * cosrot, ray(X) * sinrot );
180 double rxrotx = ray(X) * rotx;
184 double b = ray(Y) * roty;
348 if ( ( are_near(ray(X), 0) && are_near(ray(Y), 0) ) || are_near(from, to) )
353 else if ( are_near(ray(X), 0) || are_near(ray(
[all...]
H A D2geom.h45 #include <2geom/ray.h>
H A Delliptical-arc.h111 * @return The selected ray of the ellipse */
112 Coord ray(Dim2 d) const { return _ellipse.ray(d); } function in class:Geom::EllipticalArc
115 * @return Point with X equal to the X ray and Y to Y ray */
119 * @return Angle between the +X ray of the ellipse and the +X axis */
245 return ray(X) == 0 || ray(Y) == 0;
281 if ( are_near(ray(X), ray(
[all...]
H A Delliptical-arc-from-sbasis.cpp316 tol_at_center * std::min(e.ray(X),e.ray(Y))
H A Dline.h43 #include <2geom/ray.h>
98 /// Create a line by extending a ray.
289 /** @brief Create a ray starting at the specified time value.
290 * The created ray will go in the direction of the line's vector (in the direction
292 * @param t Time value where the ray should start
294 Ray ray(Coord t) { function in class:Geom::Line
501 // build the bisector line of the angle between ray(O,A) and ray(O,B)
/inkscape/src/live_effects/
H A Dlpe-bendpath.cpp195 Geom::Ray ray(ptA, B);
197 ray.setPoints(ptA, (*cubic)[1]);
199 ray.setAngle(ray.angle() + Geom::rad_from_deg(90));
201 Geom::Coord nearest_to_ray = ray.nearestTime(knot_pos);
221 Geom::Ray ray(ptA, B);
223 ray.setPoints(ptA,(*cubic)[1]);
225 ray.setAngle(ray.angle() + Geom::rad_from_deg(90));
226 Geom::Point result_point = Geom::Point::polar(ray
[all...]
H A Dlpe-roughen.cpp189 Geom::Ray ray(Geom::Point(0,0),output);
190 output = Geom::Point::polar(ray.angle(), max_lenght);
274 Geom::Ray ray((*cubic_start)[1], (*cubic_start)[0]);
276 oposite = Geom::Point::polar(ray.angle(),dist) + (*cubic_start)[0];
346 Geom::Ray ray(seg1[3] + point_a3, seg2[1] + point_a3);
351 point_b1 = seg1[3] + point_a3 + Geom::Point::polar(ray.angle() , lenght);
355 ray.setPoints(prev,A->initialPoint());
356 point_a1 = A->initialPoint() + Geom::Point::polar(ray.angle(), max_lenght);
364 ray.setPoints(point_b3, point_b2);
368 point_b2 = point_b3 + Geom::Point::polar(ray
[all...]
H A Dlpe-patternalongpath.cpp304 Geom::Ray ray(ptA, B);
306 ray.setPoints(ptA, (*cubic)[1]);
308 ray.setAngle(ray.angle() + Geom::rad_from_deg(90));
310 Geom::Coord nearest_to_ray = ray.nearestTime(knot_pos);
333 Geom::Ray ray(ptA, B);
335 ray.setPoints(ptA, (*cubic)[1]);
337 ray.setAngle(ray.angle() + Geom::rad_from_deg(90));
338 Geom::Point result_point = Geom::Point::polar(ray
[all...]
H A Dlpe-powerstroke.cpp381 // check if ellipse.ray is within 'sane' range.
382 if ( ( fabs(ellipse.ray(Geom::X)) > 1e6 ) ||
383 ( fabs(ellipse.ray(Geom::Y)) > 1e6 ) )
390 pb.arcTo( ellipse.ray(Geom::X), ellipse.ray(Geom::Y), ellipse.rotationAngle(),
/inkscape/src/svg/
H A Dsvg-path.cpp86 str.arcTo( elliptical_arc->ray(Geom::X), elliptical_arc->ray(Geom::Y),
/inkscape/src/ui/tools/
H A Dmeasure-tool.cpp742 Geom::Ray ray(start,end);
747 setGuide(start,ray.angle(), _("Measure"));
750 ray.setPoints(start, *explicit_base);
751 if(ray.angle() != 0) {
752 setGuide(start,ray.angle(), _("Base"));
791 Geom::Ray ray(start_p,end_p);
813 Geom::Ray ray(start_p,end_p);
814 Geom::Point start = start_p + Geom::Point::polar(ray.angle(), 5);
817 start = start + Geom::Point::polar(ray.angle() + Geom::rad_from_deg(90), -dimension_offset);
818 Geom::Point end = end_p + Geom::Point::polar(ray
[all...]
/inkscape/src/livarot/
H A DPathOutline.cpp968 double ray = -csdy - csey / 2; local
980 if (ray < 0)
984 ray = -csdy + csey / 2;
996 if (ray < 0)
H A DPathCutting.cpp405 elliptical_arc->ray(Geom::X), elliptical_arc->ray(Geom::Y),
/inkscape/src/
H A Dgradient-chemistry.cpp392 if (intersection(bbl1, grl.ray(grl.angle()))) {
398 if (intersection(bbl2, grl.ray(grl.angle()))) {

Completed in 54 milliseconds