Home
last modified time | relevance | path

Searched +refs:coords +refs:center +refs:x (Results 1 – 25 of 1905) sorted by relevance

12345678910>>...77

/dports/graphics/blender/blender-2.91.0/release/scripts/addons/archipack/
H A Dpanel.py178 dx = x - center.x
180 dx = center.x - x
194 if x > center.x:
195 dx = center.x - x
198 dx = x - center.x
211 dx = x - center.x
214 if x > center.x:
228 dx = x - center.x
234 if x > center.x:
453 coords.append((center.x, offset.y + center.y))
[all …]
/dports/games/gtkradiant/GPL/GtkRadiant/radiant/
H A Dsurfacedialog.cpp1567 glTranslatef(-center.x(), -center.y(), 0.0); in DrawControlWidgets()
1698 extents.minX = center.x() + VP_PADDING * (extents.minX - center.x()), in focus()
1700 extents.maxX = center.x() + VP_PADDING * (extents.maxX - center.x()), in focus()
1724 extents.minX = center.x() - 0.5f * SSize, extents.maxX = center.x() + 0.5f * SSize, in focus()
1876 trans.x() = -tm.coords[0][0] * nx - tm.coords[0][1] * ny; in button_press()
1884 oldTrans.x() = tm.coords[0][2]; in button_press()
1886 oldCenter.x() = center.x(); in button_press()
2080 …tm.coords[0][2] = (-c * center.x() * textureSize.x() - s * center.y() * textureSize.y()) + center. in motion()
2081 …tm.coords[1][2] = ( s * center.x() * textureSize.x() - c * center.y() * textureSize.y()) + center.… in motion()
2097 nx -= center.x(); in motion()
[all …]
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/surface/include/pcl/surface/impl/
H A Dpoisson.hpp120 center.coords[0] = center.coords[1] = center.coords[2] = 0; in execute()
213 cloud[i].x = p.coords[0]*scale+center.coords[0]; in performReconstruction()
214 cloud[i].y = p.coords[1]*scale+center.coords[1]; in performReconstruction()
215 cloud[i].z = p.coords[2]*scale+center.coords[2]; in performReconstruction()
220 cloud[i].x = p.coords[0]*scale+center.coords[0]; in performReconstruction()
221 cloud[i].y = p.coords[1]*scale+center.coords[1]; in performReconstruction()
222 cloud[i].z = p.coords[2]*scale+center.coords[2]; in performReconstruction()
294 points[i].x = p.coords[0]*scale+center.coords[0]; in performReconstruction()
295 points[i].y = p.coords[1]*scale+center.coords[1]; in performReconstruction()
296 points[i].z = p.coords[2]*scale+center.coords[2]; in performReconstruction()
[all …]
/dports/games/netradiant/netradiant-20150621-src/radiant/
H A Dsurfacedialog.cpp1720 glTranslatef( -center.x(), -center.y(), 0.0 ); in DrawControlWidgets()
1853 extents.minX = center.x() + VP_PADDING * ( extents.minX - center.x() ), in focus()
1855 extents.maxX = center.x() + VP_PADDING * ( extents.maxX - center.x() ), in focus()
1878 extents.minX = center.x() - 0.5f * SSize, extents.maxX = center.x() + 0.5f * SSize, in focus()
2025 trans.x() = -tm.coords[0][0] * nx - tm.coords[0][1] * ny; in button_press()
2033 oldTrans.x() = tm.coords[0][2]; in button_press()
2035 oldCenter.x() = center.x(); in button_press()
2218 …tm.coords[0][2] = ( -c * center.x() * textureSize.x() - s * center.y() * textureSize.y() ) + cente… in motion()
2219 …tm.coords[1][2] = ( s * center.x() * textureSize.x() - c * center.y() * textureSize.y() ) + center in motion()
2235 nx -= center.x(); in motion()
[all …]
/dports/games/el/Eternal-Lands-1.9.5.9-1/eye_candy/
H A Deffect_targetmagic.cpp598 effect_centers[i].x = pos->x; in idle()
607 effect_centers[i].x = (pos->x * inv_percent) + (targets[i]->x in idle()
697 target.x = targets[0]->x; in idle()
714 target.x = targets[0]->x; in idle()
759 coords += center; in TargetMagicEffect2()
823 coords += center; in TargetMagicEffect2()
843 coords += center; in TargetMagicEffect2()
857 coords += center; in TargetMagicEffect2()
873 coords += center; in TargetMagicEffect2()
892 coords += center; in TargetMagicEffect2()
[all …]
H A Deffect_firefly.cpp96 center = *pos; in FireflyEffect()
102 mover = new BoundingMover(this, center, bounding_range, 1.0); in FireflyEffect()
109 … const Vec3 coords = spawner->get_new_coords() + center + Vec3(0.0, -0.125 + randcoord(0.25), 0.0); in FireflyEffect() local
110 if (coords.x == -32768.0) in FireflyEffect()
117 …ew FireflyParticle(this, mover, coords, velocity, hue_adjust, saturation_adjust, size, center.y - … in FireflyEffect()
144 const Vec3 coords = spawner->get_new_coords() + center + Vec3(0.0, -0.25 + randcoord(0.5), 0.0);; in idle() local
145 if (coords.x == -32768.0) in idle()
152 …ew FireflyParticle(this, mover, coords, velocity, hue_adjust, saturation_adjust, size, center.y - … in idle()
H A Deffect_cloud.cpp44 if ((pos - base->center).magnitude_squared() in idle()
257 center = *pos; in CloudEffect()
276 if (coords.x == -32768.0) in CloudEffect()
278 coords += center + Vec3(0.0, randcoord(5.0), 0.0); in CloudEffect()
285 …new CloudParticle(this, mover, coords, velocity, hue_adjust, saturation_adjust, center.y, center.y… in CloudEffect()
332 if (coords.x == -32768.0) in idle()
334 coords += center + Vec3(0.0, randcoord(5.0), 0.0); in idle()
341 …new CloudParticle(this, mover, coords, velocity, hue_adjust, saturation_adjust, center.y, center.y… in idle()
353 if (coords.x == -32768.0) in idle()
355 coords += center + Vec3(0.0, randcoord(5.0), 0.0); in idle()
[all …]
/dports/graphics/gimp-resynthesizer/resynthesizer-2.0.3/lib/
H A DengineTypes.h120 return to_sort_result((a->x * a->x) < (b->x * b->x)); in lessHorizontal()
158 coords.x = a.x + b.x; in add_points()
160 return coords; in add_points()
167 coords.x = a.x - b.x; in subtract_points()
169 return coords; in subtract_points()
204 bounds.ulx = MIN(bounds.ulx, coords.x); in get_bounds()
206 bounds.lrx = MAX(bounds.lrx, coords.x); in get_bounds()
221 Coordinates center; in get_center() local
223 center.x = (bounds.lrx - bounds.ulx) / 2 + bounds.ulx; in get_center()
224 center.y = (bounds.lry - bounds.uly) / 2 + bounds.uly; in get_center()
[all …]
/dports/devel/libgpkg/luciad-libgpkg-c56e3708453e/gpkg/
H A Dgeomio.c72 center[0] = p1_x; in find_center_circularArc()
73 center[1] = p1_y; in find_center_circularArc()
201 static double get_radius(double center_x, double center_y, double x, double y) { in get_radius() argument
202 double dx = x - center_x; in get_radius()
253 double center[2]; in geom_envelope_fill_arc() local
308 double radius = get_radius(center[0], center[1], p1_x, p1_y); in geom_envelope_fill_arc()
311 double endAngle = get_angle(center[0], center[1], p3_x, p3_y); in geom_envelope_fill_arc()
333 MIN_MAX(x) in geom_envelope_fill_simple()
339 MIN_MAX(x) in geom_envelope_fill_simple()
346 MIN_MAX(x) in geom_envelope_fill_simple()
[all …]
/dports/cad/horizon-eda/horizon-2.1.0/src/core/tools/
H A Dtool_draw_arc.cpp25 ju->position.x = coords.x; in make_junction()
26 ju->position.y = coords.y; in make_junction()
32 temp_junc = make_junction(args.coords); in begin()
106 const auto end_angle = atan2(d.y, d.x); in update_end_angle()
117 radius = (args.coords - temp_arc->center->position).magd(); in update()
120 annotation->draw_line(temp_arc->center->position, args.coords, ColorP::FROM_LAYER, 0); in update()
126 const auto a = atan2(d.y, d.x); in update()
166 temp_arc->center = temp_junc; in update()
189 temp_arc->center = temp_junc; in update()
200 const auto d = args.coords - temp_arc->center->position; in update()
[all …]
/dports/www/firefox-legacy/firefox-52.8.0esr/layout/svg/
H A DnsCSSClipPathInstance.cpp244 Point center = Point(anchor.x + aRefBox.x, anchor.y + aRefBox.y); in CreateClipPathCircle() local
254 center.x, aRefBox.x, aRefBox.x + aRefBox.width); in CreateClipPathCircle()
256 center.y, aRefBox.y, aRefBox.y + aRefBox.height); in CreateClipPathCircle()
268 builder->Arc(center / appUnitsPerDevPixel, r / appUnitsPerDevPixel, in CreateClipPathCircle()
287 Point center = Point(anchor.x + aRefBox.x, anchor.y + aRefBox.y); in CreateClipPathEllipse() local
294 center.x, aRefBox.x, aRefBox.x + aRefBox.width); in CreateClipPathEllipse()
308 center / appUnitsPerDevPixel, in CreateClipPathEllipse()
327 nscoord x = nsRuleNode::ComputeCoordPercentCalc(coords[0], aRefBox.width); in CreateClipPathPolygon() local
331 builder->MoveTo(Point(aRefBox.x + x, aRefBox.y + y) / appUnitsPerDevPixel); in CreateClipPathPolygon()
333 x = nsRuleNode::ComputeCoordPercentCalc(coords[i], aRefBox.width); in CreateClipPathPolygon()
[all …]
/dports/net/mpich2/mpich2-1.5/src/pm/hydra/tools/topo/hwloc/hwloc/utils/
H A Dlstopo-draw.c721 methods->line(output, 0, 0, 0, depth, x + mywidth, center, x + mywidth + gridsize, center); \
731 center = x + totwidth + width / 2; \
951 if (x > coords->x) in getmax_box()
952 coords->x = x; in getmax_box()
953 if (x + width > coords->x) in getmax_box()
954 coords->x = x + width; in getmax_box()
966 if (x1_arg > coords->x) in getmax_line()
967 coords->x = x1_arg; in getmax_line()
968 if (x2_arg > coords->x) in getmax_line()
969 coords->x = x2_arg; in getmax_line()
[all …]
/dports/x11-toolkits/gnocl/gnocl-0.9.96/demo/canvas/
H A Dtest-canvas-text.tcl42 set x 100
44 foreach el {center N NW NE S SW SE W E} {
45 $canvas create text -coords [list $x $y] -text "anchor $el" -anchor $el
46 $canvas create ellipse -coords [list $x $y 2] -centerRadius 1 -fill red
54 $canvas create text -coords [list $x $y] -text $el -fill $el -anchor W
61 $canvas create text -coords [list $x $y] -text $txt -font "Sans 15" \
67 $canvas create text -coords {250 300} -text "�������" -fill $col -anchor center
73 $canvas create ellipse -coords [list $x $y 2] -centerRadius 1 -fill red
74 $canvas create text -coords [list $x $y] -text "offset $dx $dy" \
83 $canvas create text -coords [list $x $y] -text "no markup: $txt" -fill blue -anchor W
[all …]
/dports/devel/SpecTcl/SpecTcl/SpecTcl/
H A Darrow.tk29 set center 5
34 ${base}_column coords ${tag}_$x1 $dumcolumn $center [expr $dumcolumn+$dumcolumnh] $center
38 ${base}_row coords ${tag}_$x1 $center $dumrow $center [expr $dumrow+$dumrowh]
66 set center 5
75 ${base}_column coords ${tag}_$x1 $dumcolumn $center [expr $dumcolumn+$dumcolumnh] $center
80 ${base}_row coords ${tag}_$x1 $center $dumrow $center [expr $dumrow+$dumrowh]
129 set X0 $x
146 dputs $win $what $x $y
170 arrow_hit $win $what $x $y
183 set coords [${base}_$what coords $tag]
[all …]
/dports/textproc/py-nltk/nltk-3.4.1/nltk/
H A Dtreeprettyprinter.py158 center -= center % scale # round to unscaled coordinate
160 center += scale
172 i = j = center
312 coords = {}
316 coords[i] = n, m
382 lst[splitl : splitl + len(x)] = list(x)
526 y, x = self.coords[node]
527 x *= hscale
529 x += hstart
540 'points="%g,%g %g,%g" />' % (x, y, x, y - fontsize // 3)
[all …]
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/examples/osgimpostor/
H A Dosgimpostor.cpp128 (*coords)[0] = osg::Vec3( 0.5f, -0.7f, 0.0f); in CreateHouses()
129 (*coords)[1] = osg::Vec3( 0.5f, 0.7f, 0.0f); in CreateHouses()
130 (*coords)[2] = osg::Vec3(-0.5f, 0.7f, 0.0f); in CreateHouses()
141 (*coords)[i] = (*coords)[i] * scale + offset; in CreateHouses()
150 geometry->setVertexArray(coords.get()); in CreateHouses()
189 osg::Vec3 center = node->getBound().center(); in LayoutAsGrid() local
191 int x = (int)floor((center.x() - xGridStart) / xGridSize); in LayoutAsGrid() local
192 int z = (int)floor((center.y() - yGridStart) / yGridSize); in LayoutAsGrid()
194 groups[z * GridX + x]->addChild(node); in LayoutAsGrid()
221 impostor->setCenter(groups[i]->getBound().center()); in LayoutAsGrid()
[all …]
/dports/math/kig/kig-21.12.3/objects/
H A Dcircle_imp.cc79 Coordinate coords[4]; in inRect() local
80 coords[0] = r.topLeft(); in inRect()
81 coords[1] = r.topRight(); in inRect()
82 coords[2] = r.bottomRight(); in inRect()
83 coords[3] = r.bottomLeft(); in inRect()
86 for ( Coordinate* i = coords; i < coords + 4; ++i ) in inRect()
274 return center(); in focus1()
279 return center(); in focus2()
292 1.0, 1.0, 0.0, -2*c.x, -2*c.y, in cartesianData()
293 c.x*c.x + c.y*c.y - sqr ); in cartesianData()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/pink/objects/actions/
H A Daction_cel.cpp75 Coordinates coords; in getCoordinates() local
76 coords.point = _decoder.getCenter(); in getCoordinates()
77 coords.z = getZ(); in getCoordinates()
79 return coords; in getCoordinates()
86 _bounds = Common::Rect::center(point.x, point.y, _decoder.getWidth(), _decoder.getHeight()); in loadDecoder()
106 void ActionCEL::setCenter(const Common::Point &center) { in setCenter() argument
108 _bounds = Common::Rect::center(center.x, center.y, _decoder.getWidth(), _decoder.getHeight()); in setCenter()
/dports/games/scummvm/scummvm-2.5.1/engines/pink/objects/actions/
H A Daction_cel.cpp75 Coordinates coords; in getCoordinates() local
76 coords.point = _decoder.getCenter(); in getCoordinates()
77 coords.z = getZ(); in getCoordinates()
79 return coords; in getCoordinates()
86 _bounds = Common::Rect::center(point.x, point.y, _decoder.getWidth(), _decoder.getHeight()); in loadDecoder()
106 void ActionCEL::setCenter(Common::Point center) { in setCenter() argument
108 _bounds = Common::Rect::center(center.x, center.y, _decoder.getWidth(), _decoder.getHeight()); in setCenter()
/dports/science/code_saturne/code_saturne-7.1.0/src/cdo/
H A Dcs_basis_func.c132 return x*x; in _int_pow()
135 return x*x*x; in _int_pow()
143 x *= x, exp /= 2; in _int_pow()
145 ret *= x, x *= x, exp = (exp-1) / 2; in _int_pow()
840 const cs_real_3_t r = {coords[0] - bf->center[0], in _ck1_eval_all_at_point()
841 coords[1] - bf->center[1], in _ck1_eval_all_at_point()
874 const cs_real_3_t r = {coords[0] - bf->center[0], in _ck1_eval_at_point()
875 coords[1] - bf->center[1], in _ck1_eval_at_point()
1191 const cs_real_3_t r = {coords[0] - bf->center[0], in _cka_eval_all_at_point()
1192 coords[1] - bf->center[1], in _cka_eval_all_at_point()
[all …]
/dports/misc/py-gluoncv/gluon-cv-0.9.0/gluoncv/data/transforms/
H A Dpose.py84 def transform_predictions(coords, center, scale, output_size): argument
87 for p in range(coords.shape[0]):
160 def transform_preds(coords, center, scale, output_size): argument
209 preds = nd.zeros_like(coords)
213 preds[i] = transform_preds(coords[i], center[i], scale[i],
277 preds = nd.zeros_like(coords)
418 src[0, :] = center
464 x = np.arange(0, size, 1, np.float32)
465 y = x[:, np.newaxis]
469 g = np.exp(-((x - x0) ** 2 + (y - y0) ** 2) / (2 * (sigma ** 2)))
[all …]
/dports/graphics/netpbm/netpbm-10.91.01/lib/
H A Dlibpamd.c747 pamd_point const center, in pamd_circle() argument
763 pamd_validateCoord(center.x + radius); in pamd_circle()
764 pamd_validateCoord(center.y + radius); in pamd_circle()
765 pamd_validateCoord(center.x - radius); in pamd_circle()
766 pamd_validateCoord(center.y - radius); in pamd_circle()
831 coord * coords; member
1097 fh->coords[i-1] = fh->coords[i-2]; in pamd_fill()
1274 pamd_point const center, in textPosFromFontPos() argument
1290 pamd_point const ptl = vectorSum(center, fontPos); in textPosFromFontPos()
1364 center, in drawGlyph()
[all …]
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/apps/src/
H A Drender_views_tesselated_sphere.cpp51 comx += center[0] * area_com; in generateViews()
52 comy += center[1] * area_com; in generateViews()
53 comz += center[2] * area_com; in generateViews()
141 Eigen::Vector3f(float(center[0]), float(center[1]), float(center[2])); in generateViews()
303 double coords[3]; in generateViews() local
317 cloud->at(y, x).x = static_cast<float>(coords[0]); in generateViews()
318 cloud->at(y, x).y = static_cast<float>(coords[1]); in generateViews()
319 cloud->at(y, x).z = static_cast<float>(coords[2]); in generateViews()
332 double coords[3]; in generateViews() local
344 worldPicker->GetPickPosition(coords); in generateViews()
[all …]
/dports/graphics/blender/blender-2.91.0/source/blender/compositor/operations/
H A DCOM_OpenCLKernels.cl37 coords += offset;
66 … for (nx = minXY.x, inputXy.x = nx - offsetInput.x; nx < maxXY.x ; nx += step, inputXy.x += step) {
67 uv.x = ((realCoordinate.x-nx)/radius2)*bokehImageDim.x+bokehImageCenter.x;
169 for (nx = minXY.x, inputXy.x = nx - offsetInput.x; nx < maxXY.x ; nx ++, inputXy.x++) {
199 for (nx = minXY.x, inputXy.x = nx - offsetInput.x; nx < maxXY.x ; nx ++, inputXy.x++) {
216 float2 center, int2 offset)
234 const float v = isc * (realCoordinate.s1 - center.s1) + ltxy.s1;
235 const float u = isc * (realCoordinate.s0 - center.s0) + ltxy.s0;
237 cs * u + ss * v + center.s0,
238 cs * v - ss * u + center.s1
[all …]
/dports/math/moab/fathomteam-moab-7bde9dfb84a8/test/
H A Dhireconst_test.cpp191 double center[3] = {0, 0, 0}; in test_mesh() local
193 error = project_exact_torus ( mbimpl, meshset, dim, R, r, center ); CHECK_ERR ( error ); in test_mesh()
225 std::vector<double> coords ( 3 * nvpe ); in test_mesh() local
612 double x = 0, y = 0, z = 0, d1 = 0, d2 = 0; in project_exact_torus() local
618 x = pnts[0] - center[0]; y = pnts[1] - center[0]; z = pnts[2] - center[2]; in project_exact_torus()
619 d1 = sqrt ( x * x + y * y ); in project_exact_torus()
620 cnt[0] = R * x / d1; cnt[1] = R * y / d1; cnt[2] = 0; in project_exact_torus()
621 d2 = sqrt ( ( x - cnt[0] ) * ( x - cnt[0] ) + ( y - cnt[1] ) * ( y - cnt[1] ) + z * z ); in project_exact_torus()
622 nrms[0] = ( x - cnt[0] ) / d2; nrms[1] = ( y - cnt[1] ) / d2; nrms[2] = z / d2; in project_exact_torus()
638 double x = 0, y = 0, z = 0; in exact_error_torus() local
[all …]

12345678910>>...77