pub struct BoundingBox2d {
pub u: Vec2d,
pub v: Vec2d,
}Fields§
§u: Vec2d§v: Vec2dImplementations§
Source§impl 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§
Source§impl BoundingBoxTrait for BoundingBox2d
impl BoundingBoxTrait for BoundingBox2d
Source§impl Clone for BoundingBox2d
impl Clone for BoundingBox2d
Source§fn clone(&self) -> BoundingBox2d
fn clone(&self) -> BoundingBox2d
Returns a duplicate 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 Debug for BoundingBox2d
impl Debug for BoundingBox2d
Source§impl Default for BoundingBox2d
impl Default for BoundingBox2d
Source§impl KdTreeContent<BoundingBox2d> for Point2d
impl KdTreeContent<BoundingBox2d> for Point2d
fn get_bounding_box(&self) -> BoundingBox2d
Auto Trait Implementations§
impl Freeze for BoundingBox2d
impl RefUnwindSafe for BoundingBox2d
impl Send for BoundingBox2d
impl Sync for BoundingBox2d
impl Unpin for BoundingBox2d
impl UnwindSafe for BoundingBox2d
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