pub struct AxisAlignmentBoundingBox { /* private fields */ }Implementations§
Source§impl AxisAlignmentBoundingBox
impl AxisAlignmentBoundingBox
pub fn new(position: Vec2, half_size: Vec2) -> AxisAlignmentBoundingBox
pub fn from_bounds( left: f32, right: f32, top: f32, bottom: f32, ) -> AxisAlignmentBoundingBox
pub fn left(&self) -> f32
pub fn right(&self) -> f32
pub fn top(&self) -> f32
pub fn bottom(&self) -> f32
pub fn position(&self) -> Vec2
pub fn half_dimension(&self) -> Vec2
pub fn dimension(&self) -> Vec2
Auto Trait Implementations§
impl Freeze for AxisAlignmentBoundingBox
impl RefUnwindSafe for AxisAlignmentBoundingBox
impl Send for AxisAlignmentBoundingBox
impl Sync for AxisAlignmentBoundingBox
impl Unpin for AxisAlignmentBoundingBox
impl UnwindSafe for AxisAlignmentBoundingBox
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