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.
Methods
impl Bounds
[src]
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]
fn clone(&self) -> Bounds
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Bounds
[src]
impl Debug for Bounds
[src]
impl PartialEq for Bounds
[src]
fn eq(&self, __arg_0: &Bounds) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bounds) -> bool
[src]
This method tests for !=
.