pub struct Aabb {
pub min_x: f64,
pub min_y: f64,
pub min_z: f64,
pub max_x: f64,
pub max_y: f64,
pub max_z: f64,
}Expand description
Axis-aligned box in block-local coordinates (0.0..=1.0 for a full cube; some shapes such as
fences or piston arms extend outside that range).
Field names follow Yarn’s Box (minX .. maxZ). Values are exact f64 copies of the source
data; every value in the shipped tables is a dyadic fraction, so it is also exactly the f64
produced by vanilla’s (double)someFloat bounds.
Fields§
§min_x: f64Minimum X (west edge).
min_y: f64Minimum Y (bottom).
min_z: f64Minimum Z (north edge).
max_x: f64Maximum X (east edge).
max_y: f64Maximum Y (top).
max_z: f64Maximum Z (south edge).
Implementations§
Trait Implementations§
impl Copy for Aabb
impl StructuralPartialEq for Aabb
Auto Trait Implementations§
impl Forget for Aabb
impl Freeze for Aabb
impl RefUnwindSafe for Aabb
impl Send for Aabb
impl Sync for Aabb
impl Unpin for Aabb
impl UnsafeUnpin for Aabb
impl UnwindSafe for Aabb
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