Home
last modified time | relevance | path

Searched refs:within_bounds (Results 1 – 15 of 15) sorted by relevance

/dports/games/dose-response/dose-response-179c326/src/
H A Dpoint.rs466 assert_eq!(within_bounds(Point::new(0, 0)), true); in test_point_bound_checking()
467 assert_eq!(within_bounds(Point::new(1, 0)), true); in test_point_bound_checking()
468 assert_eq!(within_bounds(Point::new(0, 1)), true); in test_point_bound_checking()
469 assert_eq!(within_bounds(Point::new(1, 1)), true); in test_point_bound_checking()
470 assert_eq!(within_bounds(Point::new(3, 4)), true); in test_point_bound_checking()
471 assert_eq!(within_bounds(Point::new(9, 9)), true); in test_point_bound_checking()
472 assert_eq!(within_bounds(Point::new(2, 9)), true); in test_point_bound_checking()
473 assert_eq!(within_bounds(Point::new(9, 2)), true); in test_point_bound_checking()
475 assert_eq!(within_bounds(Point::new(-1, 0)), false); in test_point_bound_checking()
476 assert_eq!(within_bounds(Point::new(0, -1)), false); in test_point_bound_checking()
[all …]
H A Dworld.rs409 pub fn within_bounds(&self, pos: Point) -> bool { in within_bounds() method
433 self.within_bounds(pos) && level_cell_walkable in walkable()
439 if self.within_bounds(pos) { in pickup_item()
450 if self.within_bounds(world_pos) { in monster_on_pos()
572 if self.within_bounds(pos) { in explore()
583 if self.within_bounds(pos) { in always_visible()
H A Dpathfinding.rs36 assert!(world.within_bounds(current)); in find()
51 world.within_bounds(point) && world.walkable(point, blockers, player_position) in find()
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/hyphenation-0.8.4/src/
H A Dhyphenator.rs176 let within_bounds = i >= l && i <= r; in opportunities_within() localVariable
178 valid && within_bounds && legal_index in opportunities_within()
240 let within_bounds = i >= l && i <= r; in opportunities_within() localVariable
242 valid && within_bounds && legal_index in opportunities_within()
/dports/lang/opencoarrays/OpenCoarrays-2.9.0/src/tests/performance/BurgersMPI/
H A Dperiodic_2nd_order.F90128 pure function this_image_contains(location) result(within_bounds)
131 logical within_bounds local
132within_bounds = merge(.true.,.false., (location>=minval(local_grid) .and. location<=maxval(local_g…
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/hyphenation-0.8.4/tests/
H A Dlib.rs58 let within_bounds = |&i| i >= l && i <= r; in opportunities_within_bounds() localVariable
60 TestResult::from_bool(os.iter().all(within_bounds)) in opportunities_within_bounds()
/dports/math/py-or-tools/or-tools-9.2/ortools/constraint_solver/
H A Drouting_lp_scheduling.h231 const int within_bounds = AddVariable(0, 1); in AddReifiedLinearConstraint() local
232 SetCoefficient(reification_ct, within_bounds, 1); in AddReifiedLinearConstraint()
235 SetEnforcementLiteral(within_bounds_ct, within_bounds); in AddReifiedLinearConstraint()
236 return within_bounds; in AddReifiedLinearConstraint()
/dports/science/py-MDAnalysis/MDAnalysis-0.19.2/MDAnalysis/analysis/hbonds/
H A Dhbond_autocorrel.py471 def within_bounds(p): function
496 if within_bounds(p):
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/sql/
H A Djson_path.cc130 return first_array_index(1).within_bounds(); in is_autowrap()
156 size_t end = last.within_bounds() ? last.position() + 1 : last.position(); in get_array_range()
H A Djson_diff.cc383 if (!idx.within_bounds()) return nullptr; in seek_exact_path()
532 if (!idx.within_bounds() || !array->remove(idx.position())) in apply_json_diffs()
H A Djson_path.h123 bool within_bounds() const { return m_within_bounds; } in within_bounds() function
H A Djson_dom.cc248 return idx.within_bounds() && in find_child_doms()
2126 return idx.within_bounds() && in seek_array_cell()
3633 if (!idx.within_bounds()) { in attempt_binary_update()
3732 if (!idx.within_bounds()) return false; // no match, nothing to remove in binary_remove()
H A Ditem_json_func.cc3158 if (!idx.within_bounds() || !array->remove(idx.position())) continue; in val_json()
/dports/www/chromium-legacy/chromium-88.0.4324.182/ash/system/network/
H A Dnetwork_list_view.cc235 bool within_bounds = in UpdateNetworkListInternal() local
237 if (within_bounds && iter.second->IsMouseHovered()) { in UpdateNetworkListInternal()
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/preprocessing/tests/
H A Dtest_data.py302 within_bounds = scales ** 2 <= bounds
306 assert np.any(within_bounds)
309 assert all(scaler.var_[within_bounds] <= bounds[within_bounds])
310 assert_allclose(scaler.scale_[within_bounds], 1.0)