Searched refs:sign (Results 1 - 22 of 22) sorted by relevance

/inkscape/src/2geom/
H A Dellipse.h165 LineSegment semimajorAxis(int sign = 1) const {
166 return ray(X) >= ray(Y) ? semiaxis(X, sign) : semiaxis(Y, sign);
168 LineSegment semiminorAxis(int sign = 1) const {
169 return ray(X) < ray(Y) ? semiaxis(X, sign) : semiaxis(Y, sign);
172 LineSegment semiaxis(Dim2 d, int sign = 1) const;
H A Dsolve-bezier-one-d.cpp90 int sign = SGN(w[i]); local
91 if (sign != 0)
93 if (sign != old_sign && old_sign != 0)
97 old_sign = sign;
H A Dsolve-bezier.cpp74 int sign = SGN(bz[i]); local
75 if (sign != old_sign)
81 old_sign = sign;
165 int sign = SGN(bz[i]); local
166 if (sign != 0)
168 if (sign != old_sign && old_sign != 0)
172 old_sign = sign;
H A Dsolve-bezier-parametric.cpp10 * Perhaps it would be better to subdivide particularly around nodes with changing sign, rather than simply cutting in half.
92 int sign = SGN(V[i][Geom::Y]); local
93 if (sign != old_sign)
95 old_sign = sign;
H A Dsbasis-math.cpp119 //-sign(x)---------------------------------------------------------------
120 /** Return the sign of the two functions pointwise.
126 /** Return the sign of the two functions pointwise.
130 Piecewise<SBasis> sign=partition(f,roots(f)); local
131 for (unsigned i=0; i<sign.size(); i++){
132 sign.segs[i] = (sign.segs[i](.5)<0)? Linear(-1.):Linear(1.);
134 return sign;
H A Dcoord.cpp2696 bool* sign,
2890 bool sign;
2896 &sign, &decimal_rep_length, &decimal_point);
2899 if (sign && (value != 0.0 || !unique_zero)) {
2932 bool sign;
2940 &sign, &decimal_rep_length, &decimal_point);
2943 if (sign && (value != 0.0 || !unique_zero)) {
2965 bool sign;
2975 &sign, &decimal_rep_length, &decimal_point);
2979 &sign,
[all...]
H A Dsbasis-2d.cpp119 double sign = 1.; local
125 //sign = -sign;
130 double bx = -sign*reste[1]/fact_k*nB[X];
131 double by = -sign*reste[1]/fact_k*nB[Y];
135 //sign *= 3;
H A Dellipse.cpp136 LineSegment Ellipse::semiaxis(Dim2 d, int sign) const
139 b[d] = sgn(sign);
/inkscape/src/live_effects/
H A Dlpe-ruler.cpp125 int sign = (mark_dir == MARKDIR_RIGHT ? 1 : -1 ); local
154 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-knot.cpp198 cp.sign = 1;
247 cp.sign = input[n++];
268 result.push_back(double(cp.sign));
317 (*this)[n].sign = other[n].sign;
330 (*this)[n].sign = other[idx].sign;
332 (*this)[n].sign = default_value;
438 if ( crossing_points[p].sign * geom_sign > 0 ){
440 }else if ( crossing_points[p].sign * geom_sig
658 int sign = lpe->crossing_points[s].sign; local
[all...]
H A Dlpe-roughen.h47 virtual double sign(double randNumber);
H A Dlpe-knot.h36 int sign; //+/-1 = positive or neg crossing, 0 = flat. member in struct:Inkscape::LivePathEffect::LPEKnotNS::CrossingPoint
H A Dlpe-vonkoch.cpp117 int sign = (u[X]*v[Y]-u[Y]*v[X]>=0?1:-1); local
118 v[X] = -u[Y]*sign;
119 v[Y] = u[X]*sign;
H A Dlpe-rough-hatches.cpp46 bool sign; member in struct:Inkscape::LivePathEffect::LevelCrossing
103 lc.sign = ( dx.valueAt(times[i][j])>0 );
184 double sign = ((*this)[level][idx].sign ? 1 : -1); local
193 if ( sign > 0 ){
H A Dlpe-roughen.cpp171 double LPERoughen::sign(double random_number) function in class:Inkscape::LivePathEffect::LPERoughen
187 Geom::Point output = Geom::Point(sign(displace_x_parsed), sign(displace_y_parsed));
/inkscape/src/
H A Dcontext-fns.cpp99 double sign = (ratio < 0 ? -1 : 1); local
101 delta[Geom::X] = sign * goldenratio * delta[Geom::Y];
108 double sign = (ratio < 0 ? -1 : 1); local
110 delta[Geom::Y] = sign * goldenratio * delta[Geom::X];
H A Dline-geometry.cpp86 double sign = (Geom::dot (pt - this->pt, this->v_dir) > 0) ? 1.0 : -1.0; local
87 double lambda = sign * Geom::L2 (pt - this->pt);
H A Dseltrans.cpp866 /** Returns -1 or 1 according to the sign of x. Returns 1 for 0 and NaN. */
867 static double sign(double const x) function
908 default_scale[Geom::X] = fabs(default_scale[Geom::Y]) * sign(default_scale[Geom::X]);
909 geom_scale[Geom::X] = fabs(geom_scale[Geom::Y]) * sign(geom_scale[Geom::X]);
911 default_scale[Geom::Y] = fabs(default_scale[Geom::X]) * sign(default_scale[Geom::Y]);
912 geom_scale[Geom::Y] = fabs(geom_scale[Geom::X]) * sign(geom_scale[Geom::Y]);
1139 scale[dim_a] = sign(scale[dim_a]);
1154 sections = sign(sections) * (snaps / 2 - 1);
/inkscape/src/libavoid/
H A Dgeomtypes.cpp316 int sign = (y1 < y2) ? 1: -1; local
320 y1 += (sign * shorten_length);
324 y2 -= (sign * shorten_length);
331 int sign = (x1 < x2) ? 1: -1; local
335 x1 += (sign * shorten_length);
339 x2 -= (sign * shorten_length);
/inkscape/packaging/
H A Drelease-sign-tarballs148 echo "$GPG $signer --detach-sign $1" 1>&2
149 $GPG $signer --detach-sign $1 1>&2
151 echo "Error: failed to sign $1." >&2
184 echo "Error: unable to sign at least one of the tarballs."
188 echo "Error: Unable to sign the tar.gz file."
254 echo " Please pgp sign and send it."
/inkscape/src/ui/tool/
H A Dpath-manipulator.cpp320 double sign = (extremum == EXTR_MIN_X || extremum == EXTR_MIN_Y) ? -1. : 1.; local
330 add_or_replace_if_extremum(extremum_vector, extrvalue, sign * first->position()[dim], first, 0.);
331 add_or_replace_if_extremum(extremum_vector, extrvalue, sign * second->position()[dim], first, 1.);
343 add_or_replace_if_extremum(extremum_vector, extrvalue, sign * temp1d.valueAt(*it), first, *it);
/inkscape/share/extensions/
H A Dgcodetools.py2815 # and vice versa just change the sign because vertex now under the edge
3628 self.OptionParser.add_option("", "--dxfpoints-action", action="store", type="string", dest="dxfpoints_action", default='replace', help="dxfpoint sign toggle")
4667 self.error(_("Nothing is selected. Please select something to convert to drill point (dxfpoint) or clear point sign."),"warning")
4818 sign=1 if r>0 else -1
4825 radius = - tool_d * (i*(1-self.options.area_tool_overlap)+0.5) * sign
5201 #We can get correct sign of the sin, assuming cos is positive

Completed in 1047 milliseconds