Struct las::Bounds [−][src]
Minimum and maximum bounds in three dimensions.
Fields
min: Vector<f64>
The minimum values.
max: Vector<f64>
The maximum values.
Implementations
impl Bounds
[src]
pub fn grow(&mut self, point: &Point)
[src]
Grows the bounds to encompass this point in xyz space.
Examples
let point = Point { x: 1., y: 2., z: 3., ..Default::default() }; let mut bounds = Bounds { ..Default::default() }; bounds.grow(&point); assert_eq!(1., bounds.min.x);
Trait Implementations
impl Clone for Bounds
[src]
impl Copy for Bounds
[src]
impl Debug for Bounds
[src]
impl Default for Bounds
[src]
impl PartialEq<Bounds> for Bounds
[src]
impl StructuralPartialEq for Bounds
[src]
Auto Trait Implementations
impl RefUnwindSafe for Bounds
[src]
impl Send for Bounds
[src]
impl Sync for Bounds
[src]
impl Unpin for Bounds
[src]
impl UnwindSafe for Bounds
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,