pub struct PolygonSearchRequest {
pub start: Point2,
pub goal: Point2,
pub budget: SearchBudget,
}Expand description
Start/goal pair for online polygonal search.
Coordinates are continuous scene space. Callers validate endpoints through
the scene (or accept pathfinder-reported invalid-endpoint errors). Optional
condor_core::SearchBudget caps expansions and/or wall-clock time; default
is unlimited.
Fields§
§start: Point2Continuous start endpoint in scene coordinates.
goal: Point2Continuous goal endpoint in scene coordinates.
budget: SearchBudgetOptional expansion / wall-clock caps for this query (default unlimited).
Implementations§
Source§impl PolygonSearchRequest
impl PolygonSearchRequest
Sourcepub const fn new(start: Point2, goal: Point2) -> Self
pub const fn new(start: Point2, goal: Point2) -> Self
Builds a request with an unlimited budget without validating walkability.
Sourcepub const fn with_budget(self, budget: SearchBudget) -> Self
pub const fn with_budget(self, budget: SearchBudget) -> Self
Returns a copy of this request with the given budget.
Trait Implementations§
Source§impl Clone for PolygonSearchRequest
impl Clone for PolygonSearchRequest
Source§fn clone(&self) -> PolygonSearchRequest
fn clone(&self) -> PolygonSearchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PolygonSearchRequest
Source§impl Debug for PolygonSearchRequest
impl Debug for PolygonSearchRequest
Source§impl PartialEq for PolygonSearchRequest
impl PartialEq for PolygonSearchRequest
impl StructuralPartialEq for PolygonSearchRequest
Auto Trait Implementations§
impl Freeze for PolygonSearchRequest
impl RefUnwindSafe for PolygonSearchRequest
impl Send for PolygonSearchRequest
impl Sync for PolygonSearchRequest
impl Unpin for PolygonSearchRequest
impl UnsafeUnpin for PolygonSearchRequest
impl UnwindSafe for PolygonSearchRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more