Struct las::Bounds [] [src]

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

Minimum and maximum bounds in three dimensions.

Fields

The minimum values.

The maximum values.

Methods

impl Bounds
[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Bounds
[src]

impl Debug for Bounds
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Bounds
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for Bounds
[src]

[src]

Returns the "default value" for a type. Read more