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) -> PolygonSearchRequest
pub const fn new(start: Point2, goal: Point2) -> PolygonSearchRequest
Builds a request with an unlimited budget without validating walkability.
Sourcepub const fn with_budget(self, budget: SearchBudget) -> PolygonSearchRequest
pub const fn with_budget(self, budget: SearchBudget) -> PolygonSearchRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more