Searched refs:angle (Results 1 - 25 of 126) sorted by relevance

123456

/inkscape/src/live_effects/
H A Dlpe-text_label.cpp43 double angle = angle_between(dir, Point(1,0)); local
45 label.setAnchor(std::sin(angle), -std::cos(angle));
H A Dlpe-dynastroke.h51 ScalarParam angle; member in class:Inkscape::LivePathEffect::LPEDynastroke
/inkscape/src/2geom/
H A Dray.h40 #include <2geom/angle.h>
60 Ray(Point const& origin, Coord angle) argument
63 sincos(angle, _vector[Y], _vector[X]);
73 Coord angle() const { return std::atan2(_vector[Y], _vector[X]); } function in class:Geom::Ray
142 // evaluate the angle between r1 and r2 rotating r1 in cw or ccw direction on r2
143 // the returned value is an angle in the interval [0, 2PI[
146 double angle = angle_between(r1.vector(), r2.vector()); local
147 if (angle < 0) angle += 2*M_PI;
148 if (!cw) angle
[all...]
H A Dmath-utils.h83 /** @brief Simultaneously compute a sine and a cosine of the same angle.
86 * @param angle Angle
89 inline void sincos(double angle, double &sin_, double &cos_) { argument
91 ::sincos(angle, &sin_, &cos_);
93 sin_ = ::sin(angle);
94 cos_ = ::cos(angle);
H A Dcairo-path-sink.h65 void arcTo(Coord rx, Coord ry, Coord angle,
H A Dellipse.h39 #include <2geom/angle.h>
54 * the SVG style representation: center, rays and angle between the +X ray
74 Ellipse(Point const &c, Point const &r, Coord angle) argument
77 , _angle(angle)
79 Ellipse(Coord cx, Coord cy, Coord rx, Coord ry, Coord angle) argument
82 , _angle(angle)
90 /// Set center, rays and angle.
91 void set(Point const &c, Point const &r, Coord angle) { argument
94 _angle = angle;
96 /// Set center, rays and angle a
[all...]
H A D2geom.h44 #include <2geom/angle.h>
H A Dcairo-path-sink.cpp71 void CairoPathSink::arcTo(double rx, double ry, double angle, argument
74 EllipticalArc arc(_current_point, rx, ry, angle, large_arc, sweep, p);
H A Dline.h44 #include <2geom/angle.h>
67 * @param angle Angle of the line in mathematical convention */
68 Line(Point const &origin, Coord angle) argument
72 sincos(angle, v[Y], v[X]);
136 Coord angle() const { function in class:Geom::Line
157 /** @brief Set the angle the line makes with the X axis.
159 void setAngle(Coord angle) { argument
161 sincos(angle, v[Y], v[X]);
451 // evaluate the angle between l1 and l2 rotating l1 in cw direction
453 // the returned value is an angle i
457 double angle = angle_between(l1.vector(), l2.vector()); local
[all...]
H A Dpath-sink.h69 virtual void arcTo(Coord rx, Coord ry, Coord angle,
153 void arcTo(Coord rx, Coord ry, Coord angle, argument
160 _path.template appendNew<EllipticalArc>(rx, ry, angle,
/inkscape/share/extensions/
H A Drender_gear_rack.py31 def point_on_circle(radius, angle):
32 x = radius * cos(angle)
33 y = radius * sin(angle)
63 "-a", "--angle",
65 dest="angle", default=20.,
71 angle = radians(self.options.angle)
76 tas = tan(angle) * spacing
H A Dcubicsuperpath.py85 angle=start+i*dTeta
86 v1=[O[0]+cos(angle)-(-v)*sin(angle),O[1]+sin(angle)+(-v)*cos(angle)]
87 pt=[O[0]+cos(angle) ,O[1]+sin(angle) ]
88 v2=[O[0]+cos(angle)- v *sin(angle),O[1]+sin(angle)
[all...]
H A Dedge3d.py25 opts = [('-a', '--angle', 'float', 'angle', 45.0,
26 'angle of illumination, clockwise, 45 = upper right'),
45 def angleBetween(self, start, end, angle):
46 """Return true if angle (degrees, clockwise, 0 = up/north) is between
53 a = f(f(angle) - f(start))
64 self.start = [self.options.angle - delta * (shade+1)]
65 self.end = [self.options.angle - delta * (shade)]
66 self.start.append( self.options.angle + delta * (shade) )
67 self.end.append( self.options.angle
[all...]
H A Drender_gears.py31 def point_on_circle(radius, angle):
32 x = radius * cos(angle)
33 y = radius * sin(angle)
56 self.OptionParser.add_option("-a", "--angle",
58 dest="angle", default=20.0,
72 angle = self.options.angle # Angle of tangent to tooth at circular pitch wrt radial line.
85 base_diameter = pitch_diameter * cos( radians( angle ) )
102 undercut = (2.0 / ( sin( radians( angle ) ) ** 2))
H A Drestack.py42 self.OptionParser.add_option("-a", "--angle",
44 dest="angle", default=0.0,
45 help="arbitrary angle")
164 if self.options.direction == "tb" or (self.options.direction == "aa" and self.options.angle == 270):
166 elif self.options.direction == "bt" or (self.options.direction == "aa" and self.options.angle == 90):
168 elif self.options.direction == "lr" or (self.options.direction == "aa" and (self.options.angle == 0 or self.options.angle == 360)):
170 elif self.options.direction == "rl" or (self.options.direction == "aa" and self.options.angle == 180):
173 distance = math.hypot(cx,cy)*(math.cos(math.radians(-self.options.angle)-math.atan2(cy, cx)))
H A Dguides_creator.py371 angle = 45
386 from_ul_to_lr = str(cos(angle)) + ',' + str(cos(angle))
387 from_ur_to_ll = str(-sin(angle)) + ',' + str(sin(angle))
388 from_ll_to_ur = str(-cos(angle)) + ',' + str(cos(angle))
389 from_lr_to_ul = str(-sin(angle)) + ',' + str(-sin(angle))
/inkscape/src/libavoid/
H A Dvisibility.cpp184 angle = pos_to_angle(x, y);
189 // Firstly order by angle.
190 if (angle == rhs.angle)
207 return angle < rhs.angle;
237 double angle; member in class:Avoid::PointPair
249 vInf1(NULL), vInf2(NULL), dist1(0.0), dist2(0.0), angle(0.0),
261 angle(p1.angle),
338 double angle; member in class:Avoid::EdgePair
[all...]
/inkscape/src/ui/widget/
H A Drotateable.cpp94 double angle = atan2(event->y - drag_started_y, event->x - drag_started_x); local
97 double force = CLAMP (-(angle - current_axis)/maxdecl, -1, 1);
104 current_axis = angle;
119 double angle = atan2(event->y - drag_started_y, event->x - drag_started_x); local
120 double force = CLAMP(-(angle - current_axis) / maxdecl, -1, 1);
/inkscape/src/
H A Dline-geometry.cpp149 double angle = -1; local
154 angle = pos_angle (dir_A, dir_B);
158 if (tmp_angle > angle) {
159 angle = tmp_angle;
165 if (tmp_angle > angle) {
166 angle = tmp_angle;
172 if (tmp_angle > angle) {
173 angle = tmp_angle;
177 if (angle == -1) {
H A Dtransf_mat_3x4.h37 void set_infinite_direction (Proj::Axis axis, double angle) { // angle is in degrees argument
40 double a = angle * M_PI/180;
/inkscape/src/svg/
H A Dsvg-affine.cpp24 #include <2geom/angle.h>
215 double angle = std::atan2(transform[1], transform[0]) * (180 / M_PI); local
216 p += sp_svg_number_write_de(c + p, sizeof(c) - p, angle, prec, min_exp);
228 double angle = std::atan2(transform[1], transform[0]) * (180 / M_PI); local
229 p += sp_svg_number_write_de(c + p, sizeof(c) - p, angle, prec, min_exp);
248 double angle = atan(transform[2]) * (180 / M_PI); local
249 p += sp_svg_number_write_de(c + p, sizeof(c) - p, angle, prec, min_exp);
258 double angle = atan(transform[1]) * (180 / M_PI); local
259 p += sp_svg_number_write_de(c + p, sizeof(c) - p, angle, prec, min_exp);
/inkscape/src/display/
H A Ddrawing-context.cpp102 void DrawingContext::arc(Geom::Point const &center, double radius, Geom::AngleInterval const &angle) argument
104 double from = angle.initialAngle();
105 double to = angle.finalAngle();
/inkscape/src/extension/internal/
H A Demf-print.h77 Geom::Path pathv_to_rect(Geom::PathVector const &pathv, bool *is_rect, double *angle);
78 Geom::Point get_pathrect_corner(Geom::Path pathRect, double angle, int corner);
80 int vector_rect_alignment(double angle, Geom::Point vtest);
/inkscape/src/live_effects/parameter/
H A Dtext.cpp65 double angle = Geom::angle_between(dir, Point(1,0)); local
68 sp_canvastext_set_anchor_manually(canvas_text, std::sin(angle), -std::cos(angle));
/inkscape/src/ui/dialog/
H A Dpolar-arrange-tab.cpp45 angleY("", C_("Polar arrange tab", "Starting angle"), UNIT_TYPE_RADIAL),
46 angleX("", C_("Polar arrange tab", "End angle"), angleY)
187 * Calculates the angle at which to put an object given the total amount
190 * @param arcBegin angle at which the arc begins
191 * @param arcEnd angle at which the arc ends
201 float angle = n / (float)count; local
203 angle = angle * arcLength;
204 angle += arcBegin;
206 return angle;
213 calcPoint(float cx, float cy, float rx, float ry, float angle) argument
383 float angle = calcAngle(arcBeg, arcEnd, count, i); local
[all...]

Completed in 1626 milliseconds

123456