Struct maglio::BoundingBox2d
source · [−]Fields
u: Vec2d
v: Vec2d
Implementations
sourceimpl BoundingBox2d
impl BoundingBox2d
pub fn new(u: Vec2d, v: Vec2d) -> Self
pub fn intersects(&self, other: &Self) -> bool
pub fn is_hit_by_ray(&self, cray: &ConstrainedRay2d) -> HitBoxResult
Trait Implementations
sourceimpl BoundingBoxTrait for BoundingBox2d
impl BoundingBoxTrait for BoundingBox2d
sourceimpl Clone for BoundingBox2d
impl Clone for BoundingBox2d
sourcefn clone(&self) -> BoundingBox2d
fn clone(&self) -> BoundingBox2d
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BoundingBox2d
impl Debug for BoundingBox2d
sourceimpl Default for BoundingBox2d
impl Default for BoundingBox2d
sourceimpl KdTreeContent<BoundingBox2d> for Point2d
impl KdTreeContent<BoundingBox2d> for Point2d
fn get_bounding_box(&self) -> BoundingBox2d
Auto Trait Implementations
impl RefUnwindSafe for BoundingBox2d
impl Send for BoundingBox2d
impl Sync for BoundingBox2d
impl Unpin for BoundingBox2d
impl UnwindSafe for BoundingBox2d
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more