pub struct Bounds<T> {
pub min: Vector3<T>,
pub max: Vector3<T>,
}Expand description
Bounds in 3d space.
Fields§
§min: Vector3<T>§max: Vector3<T>Implementations§
Source§impl Bounds<f32>
impl Bounds<f32>
Sourcepub fn new(point1: Vector3<f32>, point2: Vector3<f32>) -> Self
pub fn new(point1: Vector3<f32>, point2: Vector3<f32>) -> Self
Create bounds from any two points in 3d space.
pub fn collides(&self, other: &Self) -> bool
Trait Implementations§
impl<T: Eq> Eq for Bounds<T>
impl<T> StructuralPartialEq for Bounds<T>
Auto Trait Implementations§
impl<T> Freeze for Bounds<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bounds<T>where
T: RefUnwindSafe,
impl<T> Send for Bounds<T>where
T: Send,
impl<T> Sync for Bounds<T>where
T: Sync,
impl<T> Unpin for Bounds<T>where
T: Unpin,
impl<T> UnwindSafe for Bounds<T>where
T: 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