pub struct BBox<P: Copy + Debug + 'static> {
pub min: P,
pub max: P,
}Expand description
An axis-aligned bounding box; the point type carries the dimension.
This is a scalar type; for large batches (e.g. detection anchors) consider
an SoA layout so bulk operations vectorize (see cu29_soa_derive).
Fields§
§min: P§max: PImplementations§
Source§impl<L: Copy + Debug + PartialOrd + 'static> BBox<Point2<L>>
impl<L: Copy + Debug + PartialOrd + 'static> BBox<Point2<L>>
Trait Implementations§
Source§impl<'__de, P, __Context> BorrowDecode<'__de, __Context> for BBox<P>
impl<'__de, P, __Context> BorrowDecode<'__de, __Context> for BBox<P>
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
impl<P: Copy + Copy + Debug + 'static> Copy for BBox<P>
Source§impl<'de, P> Deserialize<'de> for BBox<P>
impl<'de, P> Deserialize<'de> for BBox<P>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<P: PartialEq + Copy + Debug + 'static> StructuralPartialEq for BBox<P>
Auto Trait Implementations§
impl<P> Freeze for BBox<P>where
P: Freeze,
impl<P> RefUnwindSafe for BBox<P>where
P: RefUnwindSafe,
impl<P> Send for BBox<P>where
P: Send,
impl<P> Sync for BBox<P>where
P: Sync,
impl<P> Unpin for BBox<P>where
P: Unpin,
impl<P> UnsafeUnpin for BBox<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for BBox<P>where
P: UnwindSafe,
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