pub struct OBB {
pub center: Point2,
pub half_w: f64,
pub half_h: f64,
pub angle: f64,
}Expand description
2D oriented bounding box: center, half-extents along local axes, rotation angle.
Fields§
§center: Point2§half_w: f64§half_h: f64§angle: f64Implementations§
Trait Implementations§
impl Copy for OBB
impl StructuralPartialEq for OBB
Auto Trait Implementations§
impl Freeze for OBB
impl RefUnwindSafe for OBB
impl Send for OBB
impl Sync for OBB
impl Unpin for OBB
impl UnsafeUnpin for OBB
impl UnwindSafe for OBB
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