pub struct ModelBounds {
pub min_x: f64,
pub min_y: f64,
pub min_z: f64,
pub max_x: f64,
pub max_y: f64,
pub max_z: f64,
pub sample_count: usize,
}Expand description
Model bounds in f64 precision
Fields§
§min_x: f64Minimum X coordinate found
min_y: f64Minimum Y coordinate found
min_z: f64Minimum Z coordinate found
max_x: f64Maximum X coordinate found
max_y: f64Maximum Y coordinate found
max_z: f64Maximum Z coordinate found
sample_count: usizeNumber of points sampled
Implementations§
Source§impl ModelBounds
impl ModelBounds
Sourcepub fn has_large_coordinates(&self) -> bool
pub fn has_large_coordinates(&self) -> bool
Check if bounds contain large coordinates (>10km from origin)
Sourcepub fn rtc_offset(&self) -> (f64, f64, f64)
pub fn rtc_offset(&self) -> (f64, f64, f64)
Get the RTC offset (same as centroid for large coordinates, zero otherwise)
Trait Implementations§
Source§impl Clone for ModelBounds
impl Clone for ModelBounds
Source§fn clone(&self) -> ModelBounds
fn clone(&self) -> ModelBounds
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 ModelBounds
impl Debug for ModelBounds
Auto Trait Implementations§
impl Freeze for ModelBounds
impl RefUnwindSafe for ModelBounds
impl Send for ModelBounds
impl Sync for ModelBounds
impl Unpin for ModelBounds
impl UnsafeUnpin for ModelBounds
impl UnwindSafe for ModelBounds
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