Home
last modified time | relevance | path

Searched refs:target_x (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/dports/science/py-pymol/pymol-open-source-2.4.0/layer1/
H A DPop.cpp116 int target_x; in PopPlaceChild() local
123 target_x = right_x - 2; in PopPlaceChild()
124 block->rect.left = target_x; in PopPlaceChild()
128 target_x = left_x - width + 2; in PopPlaceChild()
129 block->rect.left = target_x; in PopPlaceChild()
134 if(block->rect.left != target_x) { in PopPlaceChild()
136 target_x = left_x - width + 2; in PopPlaceChild()
137 block->rect.left = target_x; in PopPlaceChild()
142 if(block->rect.left != target_x) { in PopPlaceChild()
144 target_x = right_x - 2; in PopPlaceChild()
[all …]
/dports/games/gnome-nibbles/gnome-nibbles-3.38.2/src/
H A Dwarp.vala33 public uint8 target_x { private get; protected construct set; }
49 target_x: target_x,
59 target_x = x;
74 target_x = x;
89 target_x = this.target_x;
95 target_x = this.target_x + 2;
96 else if (this.target_x == 0)
99 target_x = this.target_x - 1;
108 target_x = this.target_x;
110 target_x = this.target_x + 1;
[all …]
/dports/www/py-django-filer/django-filer-1.7.0/filer/
H A Dthumbnail_processors.py65 target_x, target_y = [float(v) for v in size]
67 if crop or not target_x or not target_y:
68 scale = max(target_x / source_x, target_y / source_y)
70 scale = min(target_x / source_x, target_y / source_y)
73 if not target_x:
74 target_x = source_x * scale
80 target_x = round(source_x * scale)
98 ex = (res_x - min(res_x, target_x)) / 2
149 target_x, target_y = size
154 (target_x - source_x) / 2, (target_y - source_y) / 2))
[all …]
/dports/www/py-django-markdownx/django-markdownx-3.0.1/markdownx/
H A Dutils.py30 def _crop(im, target_x, target_y): argument
46 diff_x = int(source_x - min(source_x, target_x))
55 min(source_x, int(target_x) + halfdiff_x),
112 target_x, target_y = map(float, size)
114 if crop or not target_x or not target_y:
115 scale = max(target_x / source_x, target_y / source_y)
117 scale = min(target_x / source_x, target_y / source_y)
120 if not target_x:
121 target_x = source_x * scale
129 im = _crop(im=im, target_x=target_x, target_y=target_y)
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/sword2/
H A Dwalker.cpp118 int32 route = routeFinder(ob_mega, ob_walkdata, target_x, target_y, target_dir); in doWalk()
218 int16 target_x = 0; in walkToAnim() local
235 target_x = anim_head.feetStartX; in walkToAnim()
244 if (target_x == 0 && target_y == 0) { in walkToAnim()
245 target_x = _standbyX; in walkToAnim()
263 int16 target_x = 0; in walkToTalkToMega() local
294 target_x = targetMega.getFeetX() + mega_separation; in walkToTalkToMega()
300 target_x = targetMega.getFeetX() - mega_separation; in walkToTalkToMega()
313 int16 target_x = 0; in doFace() local
326 target_x = obMega.getFeetX(); in doFace()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/sword2/
H A Dwalker.cpp118 int32 route = routeFinder(ob_mega, ob_walkdata, target_x, target_y, target_dir); in doWalk()
218 int16 target_x = 0; in walkToAnim() local
235 target_x = anim_head.feetStartX; in walkToAnim()
244 if (target_x == 0 && target_y == 0) { in walkToAnim()
245 target_x = _standbyX; in walkToAnim()
263 int16 target_x = 0; in walkToTalkToMega() local
294 target_x = targetMega.getFeetX() + mega_separation; in walkToTalkToMega()
300 target_x = targetMega.getFeetX() - mega_separation; in walkToTalkToMega()
313 int16 target_x = 0; in doFace() local
326 target_x = obMega.getFeetX(); in doFace()
[all …]
/dports/textproc/lasem/lasem-0.5.1/src/
H A Dlsmsvgfilterconvolvematrix.c46 int target_x; in lsm_svg_filter_convolve_matrix_apply() local
54 if (lsm_attribute_is_defined (&convolve_matrix->target_x.base)) in lsm_svg_filter_convolve_matrix_apply()
55 target_x = convolve_matrix->target_x.value; in lsm_svg_filter_convolve_matrix_apply()
57 target_x = order_x / 2; in lsm_svg_filter_convolve_matrix_apply()
64 target_x = CLAMP (target_x, 0, order_x); in lsm_svg_filter_convolve_matrix_apply()
89 target_x, in lsm_svg_filter_convolve_matrix_apply()
118 self->target_x.value = target_default; in lsm_svg_filter_convolve_matrix_init()
159 .attribute_offset = offsetof (LsmSvgFilterConvolveMatrix, target_x),
/dports/graphics/blender/blender-2.91.0/release/scripts/addons/magic_uv/op/
H A Dclip_uv.py193 target_x = math.fmod(max_uv.x - self.clip_uv_range_min[0],
195 if target_x < 0.0:
196 target_x += clip_size.x
197 target_x += self.clip_uv_range_min[0]
198 move_uv.x = target_x - max_uv.x
200 target_x = math.fmod(min_uv.x - self.clip_uv_range_min[0],
202 if target_x < 0.0:
203 target_x += clip_size.x
204 target_x += self.clip_uv_range_min[0]
205 move_uv.x = target_x - min_uv.x
/dports/graphics/py-django-easy-thumbnails/easy-thumbnails-2.5/easy_thumbnails/
H A Dprocessors.py181 target_x, target_y = [int(v) for v in size]
183 if crop or not target_x or not target_y:
184 scale = max(target_x / source_x, target_y / source_y)
186 scale = min(target_x / source_x, target_y / source_y)
189 if not target_x:
190 target_x = round(source_x * scale)
196 target_x = round(source_x * scale)
212 diff_x = int(source_x - min(source_x, target_x))
224 halftarget_x, halftarget_y = int(target_x / 2), int(target_y / 2)
231 box.append(int(min(source_x, box[0] + target_x)))
[all …]
/dports/games/scummvm/scummvm-2.5.1/devtools/create_ultima/files/ultima6/scripts/u6/
H A Dactor.lua1461target_x, target_y = map_line_hit_check(attacker.x, attacker.y, target_x, target_y, attacker.z)
1473 target_x = target_x + random(0, 2) - 1
1491target_x, target_y = map_line_hit_check(attacker.x, attacker.y, target_x, target_y, attacker.z)
1577 {x=target_x,
2583 …if target_x < chunk_x or chunk_x + 0x27 < target_x or target_y < chunk_y or chunk_y + 0x27 < targe…
2602 target_x = target_x + var_14
2796 local target_x = tmp_actor.x
2915 local target_x = target_actor.x
2965 local target_x = target.x
2978 target_x = target_x - actor_x
[all …]
/dports/games/frogatto/frogatto-1.3.1/src/
H A Dcurrent_generator.cpp38 void radial_current_generator::generate(int center_x, int center_y, int target_x, int target_y, int… in generate() argument
39 if(center_x == target_x && center_y == target_y) { in generate()
43 const float xdiff = target_x - center_x; in generate()
58 …std::cerr << "DO_CURRENT: " << center_x << "," << center_y << " ~ " << target_x << "," << target_y… in generate()
80 void rect_current_generator::generate(int center_x, int center_y, int target_x, int target_y, int t… in generate() argument
83 if(point_in_rect(point(target_x, target_y), rect_)) { in generate()
86 const int distance = rect_.x2() - target_x; in generate()
94 const int distance = target_x - rect_.x(); in generate()
/dports/games/scummvm/scummvm-2.5.1/devtools/create_ultima/files/ultima6/scripts/md/
H A Dcombat.lua231 function attack_target_with_weapon(actor, target_x, target_y, weapon)
232 local target_range = actor_get_combat_range(actor, target_x, target_y)
306 spread_weapon_damage(actor, target_x, target_y, weapon)
348 fire_range_based_weapon(actor, target_x, target_y, weapon)
417 spread_weapon_damage(actor, target_x, target_y, weapon)
442 function spread_weapon_damage(actor, target_x, target_y, weapon)
448 …pon_tile_num_tbl[weapon.obj_n], actor.x, actor.y, {{x=target_x, y=target_y, z=actor.z}, {x=target_…
507 function fire_range_based_weapon(attacker, target_x, target_y, weapon)
515 … projectile_anim(projectile_info.tile_num, attacker.x, attacker.y, target_x, target_y, 4, false, 0)
522 if is_open_water_at_loc(target_x, target_y, attacker.z) then
[all …]
/dports/x11/py-xdot/xdot-1.2/xdot/ui/
H A Danimation.py85 def __init__(self, dot_widget, target_x, target_y): argument
89 self.target_x = target_x
94 tx, ty = self.target_x, self.target_y
102 def __init__(self, dot_widget, target_x, target_y): argument
103 MoveToAnimation.__init__(self, dot_widget, target_x, target_y)
110 distance = math.hypot(self.source_x - self.target_x,
/dports/www/gtkhtml4/gtkhtml-4.10.0/gtkhtml/
H A Dhtmlcursor.c142 dest->target_x = src->target_x; in html_cursor_copy()
349 gint target_x; in html_cursor_up() local
379 target_x = cursor->target_x; in html_cursor_up()
418 cursor->target_x = target_x; in html_cursor_up()
423 if (prev_y == y && x - target_x >= target_x - prev_x) { in html_cursor_up()
436 cursor->target_x = target_x; in html_cursor_up()
441 if (prev_y == y && target_x - x >= prev_x - target_x) { in html_cursor_up()
494 target_x = cursor->target_x; in html_cursor_down()
537 cursor->target_x = target_x; in html_cursor_down()
542 if (prev_y == y && target_x - x >= prev_x - target_x) { in html_cursor_down()
[all …]
/dports/games/scummvm/scummvm-2.5.1/devtools/create_ultima/files/ultima6/scripts/u6/magic/circle_07/
H A Dchain_bolt.lua28 local target_x = tmp_actor.x
31 …if tmp_actor.z == caster.z and target_x > caster.x - 5 and target_x < caster.x + 5 and target_y > …
33 …local val = (target_x - actor.x) * (target_x - actor.x) + (target_y - actor.y) * (target_y - actor…
H A Dwing_strike.lua17 local target_x = actor.x
20 …if actor.z == player_z and target_x > player_x - 5 and target_x < player_x + 5 and target_y > play…
/dports/graphics/py-cartopy/Cartopy-0.19.0.post1/lib/cartopy/tests/mpl/
H A Dtest_img_transform.py40 target_x, target_y, extent = im_trans.mesh_projection(target_proj,
46 target_proj, target_x, target_y)
49 assert new_array.shape == target_x.shape
69 target_x = np.arange(reduce(operator.mul, target_x_shape),
78 target_proj, target_x, target_y)
100 target_x, target_y, target_extent = im_trans.mesh_projection(target_proj,
106 target_proj, target_x, target_y)
/dports/graphics/cimg/CImg-v.2.9.7/plugins/
H A Dinpaint.h147 int target_x = -1, target_y = -1; variable
211 target_x = ox + x; target_y = oy + y;
237 *(ptr_lookup_candidates++) = target_x;
259 visu.draw_rectangle(target_x - p1,target_y - p1,target_x + p2,target_y + p2,
271 _inpaint_patch_crop(target_x - p1,target_y - p1,target_x + p2,target_y + p2,0).move_to(pP);
272 …nmask._inpaint_patch_crop(target_x - ox - p1,target_y - oy - p1,target_x - ox + p2,target_y - oy …
329 …nmask._inpaint_patch_crop(target_x - ox - p1,target_y - oy - p1,target_x - ox + p2,target_y - oy +…
332 draw_image(target_x - p1,target_y - p1,pbest,pM,1,1);
334 …nmask.draw_rectangle(target_x - ox - p1,target_y - oy - p1,0,0,target_x - ox + p2,target_y - oy + …
337 target_x - ox + 3*p2/2,
[all …]
/dports/graphics/gmic-qt/CImg-v.2.9.8/plugins/
H A Dinpaint.h147 int target_x = -1, target_y = -1; variable
211 target_x = ox + x; target_y = oy + y;
237 *(ptr_lookup_candidates++) = target_x;
259 visu.draw_rectangle(target_x - p1,target_y - p1,target_x + p2,target_y + p2,
271 _inpaint_patch_crop(target_x - p1,target_y - p1,target_x + p2,target_y + p2,0).move_to(pP);
272 …nmask._inpaint_patch_crop(target_x - ox - p1,target_y - oy - p1,target_x - ox + p2,target_y - oy …
329 …nmask._inpaint_patch_crop(target_x - ox - p1,target_y - oy - p1,target_x - ox + p2,target_y - oy +…
332 draw_image(target_x - p1,target_y - p1,pbest,pM,1,1);
334 …nmask.draw_rectangle(target_x - ox - p1,target_y - oy - p1,0,0,target_x - ox + p2,target_y - oy + …
337 target_x - ox + 3*p2/2,
[all …]
/dports/graphics/openfx-misc/openfx-misc-3ab0531/CImg/Inpaint/
H A Dinpaint.h147 int target_x = -1, target_y = -1; variable
211 target_x = ox + x; target_y = oy + y;
237 *(ptr_lookup_candidates++) = target_x;
259 visu.draw_rectangle(target_x - p1,target_y - p1,target_x + p2,target_y + p2,
271 _inpaint_patch_crop(target_x - p1,target_y - p1,target_x + p2,target_y + p2,0).move_to(pP);
272 …nmask._inpaint_patch_crop(target_x - ox - p1,target_y - oy - p1,target_x - ox + p2,target_y - oy …
329 …nmask._inpaint_patch_crop(target_x - ox - p1,target_y - oy - p1,target_x - ox + p2,target_y - oy +…
332 draw_image(target_x - p1,target_y - p1,pbest,pM,1,1);
334 …nmask.draw_rectangle(target_x - ox - p1,target_y - oy - p1,0,0,target_x - ox + p2,target_y - oy + …
337 target_x - ox + 3*p2/2,
[all …]
/dports/graphics/py-cartopy/Cartopy-0.19.0.post1/lib/cartopy/tests/
H A Dtest_img_transform.py28 target_x, target_y, extent = img_trans.mesh_projection(
42 assert_array_equal(np.diff(target_x, axis=1), (xmax - xmin) / nx)
56 target_x, target_y, extent = img_trans.mesh_projection(target_prj, 8, 4)
59 target_x, target_y,
89 target_x, target_y, extent = img_trans.mesh_projection(target_prj, 8, 4)
92 target_x, target_y,
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/fonts/shaping/
H A Dshape_result_buffer.cc220 float target_x, in OffsetForPosition() argument
232 if (target_x >= 0 && target_x <= word_result->Width()) { in OffsetForPosition()
234 target_x, in OffsetForPosition()
239 target_x -= word_result->Width(); in OffsetForPosition()
247 target_x, StringView(text, 0, word_result->NumCharacters()), in OffsetForPosition()
251 if (target_x >= 0 && target_x <= word_result->Width()) in OffsetForPosition()
254 target_x -= word_result->Width(); in OffsetForPosition()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/fonts/shaping/
H A Dshape_result_buffer.cc220 float target_x, in OffsetForPosition() argument
232 if (target_x >= 0 && target_x <= word_result->Width()) { in OffsetForPosition()
234 target_x, in OffsetForPosition()
239 target_x -= word_result->Width(); in OffsetForPosition()
247 target_x, StringView(text, 0, word_result->NumCharacters()), in OffsetForPosition()
251 if (target_x >= 0 && target_x <= word_result->Width()) in OffsetForPosition()
254 target_x -= word_result->Width(); in OffsetForPosition()
/dports/graphics/reallyslick/rss-glx_0.9.1/src/PixelCity/
H A DVisible.cpp67 float target_x, target_z; in VisibleUpdate() local
114 target_x = (float)x * GRID_RESOLUTION; in VisibleUpdate()
116 target_x = (float)(x + 1) * GRID_RESOLUTION; in VisibleUpdate()
121 angle_to = 180 - MathAngle (target_x, target_z, position.x, position.z); in VisibleUpdate()
/dports/games/dangen/dangen-0.5/spqr/
H A Dw-ko.c1422 if ((x - target_x >= -NEAR_ZERO) && (x - target_x <= NEAR_ZERO)) in w_ko_lock_on_new()
1457 t /= (x - target_x) * (x - target_x); in w_ko_lock_on_new()
1459 temp = 0.5 * (x + target_x - (target_y - y) / ((target_x - x) * (t + 1))); in w_ko_lock_on_new()
1460 if (((x < temp) && (target_x < temp)) in w_ko_lock_on_new()
1465 t /= (x - target_x) * (x - target_x); in w_ko_lock_on_new()
1485 t /= (x - target_x) * (x - target_x); in w_ko_lock_on_new()
1487 temp = 0.5 * (x + target_x - (target_y - y) / ((target_x - x) * (t + 1))); in w_ko_lock_on_new()
1493 t /= (x - target_x) * (x - target_x); in w_ko_lock_on_new()
1520 count_d[1] = -(t + 1) * (x + target_x) + (target_y - y) / (target_x - x); in w_ko_lock_on_new()
1521 count_d[2] = (t + 1) * x * target_x in w_ko_lock_on_new()
[all …]

12345678910>>...18