pub struct PartialQTHaz {
pub shape: Weak<SimplePolygon>,
pub edges: RelevantEdges,
}
Expand description
Defines a set of edges from a hazard that is partially active in the QTNode.
Fields§
§shape: Weak<SimplePolygon>
§edges: RelevantEdges
Implementations§
Source§impl PartialQTHaz
impl PartialQTHaz
pub fn new(shape: Arc<SimplePolygon>, edge_indices: RelevantEdges) -> Self
pub fn shape_arc(&self) -> Arc<SimplePolygon>
pub fn encompasses_all_edges(&self) -> bool
pub fn add_edge_index(&mut self, index: usize)
Trait Implementations§
Source§impl Clone for PartialQTHaz
impl Clone for PartialQTHaz
Source§fn clone(&self) -> PartialQTHaz
fn clone(&self) -> PartialQTHaz
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> CollidesWith<T> for PartialQTHazwhere
T: QTQueryable,
impl<T> CollidesWith<T> for PartialQTHazwhere
T: QTQueryable,
fn collides_with(&self, entity: &T) -> bool
Source§impl Debug for PartialQTHaz
impl Debug for PartialQTHaz
Auto Trait Implementations§
impl Freeze for PartialQTHaz
impl RefUnwindSafe for PartialQTHaz
impl Send for PartialQTHaz
impl Sync for PartialQTHaz
impl Unpin for PartialQTHaz
impl UnwindSafe for PartialQTHaz
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
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