Struct las::Bounds[][src]

pub struct Bounds {
    pub min: Vector<f64>,
    pub max: Vector<f64>,
}

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.