[−][src]Struct pointcloud::utils::AdjMatrix
The data structure for an adjacency matrix. This is a simple wrapper around a
hash-map whose keys are pairs of PointIndexes
and whose values are the
distances between the two points. This is usually the method one want to access the data.
It assumes your data is symmetric and only stores the upper triangular matrix
Methods
impl AdjMatrix
[src]
pub fn get(&self, i: PointIndex, j: PointIndex) -> Option<&f32>
[src]
This gets by passing the smaller of the two indexes as the first element of the pair and the larger as the second.
pub fn min(&self) -> f32
[src]
Iterates over all distances and gets the minimum.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AdjMatrix
impl Send for AdjMatrix
impl Sync for AdjMatrix
impl Unpin for AdjMatrix
impl UnwindSafe for AdjMatrix
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,
impl<T> From<T> for T
[src]
impl<T> FromCast<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,