Searched refs:unit_vector (Results 1 - 25 of 35) sorted by relevance

12

/inkscape/src/live_effects/
H A Dlpe-text_label.cpp40 Point dir(unit_vector(derivative(pwd2_in).valueAt(t)));
H A Dlpe-ruler.cpp154 Point n = rot90(unit_vector(speed(t_cuts[i])))*sign;
164 Point n = rot90(unit_vector(speed.firstValue()))*sign;
170 Point n = rot90(unit_vector(speed.lastValue()))*sign;
180 n = rot90(unit_vector(speed.segs[speed.segs.size()-2].at1()))*sign;
H A Dlpe-parallel.cpp74 dir = unit_vector(B - A);
89 dir = unit_vector(B - A);
H A Dlpe-angle_bisector.cpp71 dir = unit_vector(B - ptA) * Rotate(angle/2);
H A Dlpe-perp_bisector.cpp144 perp_dir = unit_vector((B - A).ccw());
H A Dlpe-gears.cpp163 Geom::Point leading_end = (root_radius() * unit_vector(leading_start - _centre)) + _centre;
176 Geom::Point trailing_end = (base_radius() * unit_vector(trailing_start - _centre)) + _centre;
H A Dlpe-curvestitch.cpp124 transform.setYAxis( rot90(unit_vector(end-start)) * scaling_y);
H A Dlpe-tangent_to_curve.cpp84 derivA = unit_vector(derivative(pwd2_in).valueAt(t_attach));
/inkscape/src/2geom/
H A Dbezier-utils.cpp379 est_tHat1 = unit_vector(bezier[1] - bezier[0]);
710 return unit_vector( d[1] - d[0] );
730 return unit_vector( d[prev] - d[last] );
754 return unit_vector(t);
760 : unit_vector(t) );
786 return unit_vector(t);
791 : unit_vector(t) );
H A Dpoint.cpp73 * @see unit_vector(Geom::Point const &) */
176 Point unit_vector(Point const &a) function in namespace:Geom
H A Daffine.cpp477 vectors[i] = unit_vector(rot90(Point(m[0] - values[i], m[1])));
493 vectors[i] = unit_vector(rot90(Point(m[0][0] - values[i], m[0][1])));
H A Delliptical-arc-from-sbasis.cpp178 return unit_vector(n);
H A Dtransforms.cpp150 Geom::Point vn = unit_vector(vector);
H A Dpoint.h402 Point unit_vector(Point const &a);
H A Dtransforms.h196 explicit Rotate(Point const &p) : vec(unit_vector(p)) {}
H A Dsbasis-geometric.cpp7 * unit_vector, curvature, and centroid. Most are built on top of unit_vector, which takes an
192 /** tan2 is the pseudo-inverse of atan2. It takes an angle and returns a unit_vector that points in the direction of angle.
203 /** tan2 is the pseudo-inverse of atan2. It takes an angle and returns a unit_vector that points in the direction of angle.
236 Point v0 = unit_vector(V.at0());
237 Point v1 = unit_vector(V.at1());
/inkscape/src/live_effects/parameter/
H A Dtext.cpp63 Point dir = unit_vector(derivative(pwd2_reparam).valueAt(t_reparam));
/inkscape/src/ui/tool/
H A Dnode.cpp100 return Geom::unit_vector(second - first);
249 Geom::Point dir = Geom::unit_vector(relativePos());
265 Geom::Point unitdir = Geom::unit_vector(dir);
346 new_pos = parent_pos + Geom::unit_vector(new_pos - parent_pos) * _saved_length;
772 Geom::Point dir = Geom::unit_vector((len_prev / len_next) * vec_next - vec_prev);
836 _front.setRelativePos(Geom::unit_vector(-_back.relativePos()) * dist / 3);
840 _back.setRelativePos(Geom::unit_vector(-_front.relativePos()) * dist / 3);
880 Geom::Point dir = Geom::unit_vector((len_prev / len_next) * vec_next - vec_prev);
929 if (Geom::are_near(Geom::unit_vector(front_delta),
930 Geom::unit_vector(
[all...]
/inkscape/src/
H A Dline-geometry.h48 return (pt + lambda * Geom::unit_vector (v_dir)); }
H A Dunclump.cpp289 Geom::Point by = dist * Geom::unit_vector (- (p - it));
312 Geom::Point by = dist * Geom::unit_vector (p - it);
/inkscape/src/ui/tools/
H A Dpencil-tool.cpp695 : Geom::unit_vector(req_vec) );
789 : Geom::unit_vector(req_vec) );
847 : Geom::unit_vector(req_vec) );
H A Dlpe-tool.cpp376 Point dir = unit_vector(derivative(pwd2_reparam).valueAt(t_reparam));
H A Dmeasure-tool.cpp866 Geom::Point unit_vector = Geom::rot90(origin.polar(angle)); local
869 angle_str << unit_vector[Geom::X] << "," << unit_vector[Geom::Y]; local
1219 Geom::Point windowNormal = Geom::unit_vector(Geom::rot90(desktop->d2w(end_p - start_p)));
/inkscape/src/extension/internal/
H A Demf-print.cpp826 v1 = unit_vector(P1 - P1_trail);
827 v2 = unit_vector(P1_lead - P1 );
874 v1 = unit_vector(P1 - P1_trail);
891 v1 = unit_vector(P1 - P1_trail);
914 Geom::Point v1 = Geom::unit_vector(vtest); // unit vector to test alignment
1187 Geom::Point xuv = Geom::unit_vector(xv); // X' unit vector
1325 Geom::Point uv = Geom::unit_vector(gv.p2 - gv.p1); // unit vector
/inkscape/src/display/
H A Dguideline.cpp92 Geom::Point normal_dt = /*unit_vector*/(gl->normal_to_line * gl->affine.withoutTranslation()); // note that normal_dt does not have unit length
205 double distance = Geom::dot((p - gl->point_on_line * gl->affine), unit_vector(vec));

Completed in 84 milliseconds

12