[−][src]Struct pointcloud::AdjMatrix
A sparse adjacency matrix.
Fields
vals: Vec<f32>
The distances between the respective points, same order as indexes
indexes: Vec<(PointIndex, PointIndex)>
The pairs of indexes for the distances in vals
Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,