[][src]Trait pointcloud::PointRef

pub trait PointRef: Send + Sync {
    type DenseIter: Iterator<Item = f32>;
    pub fn dense_iter(&self) -> Self::DenseIter;

    pub fn dense(&self) -> Vec<f32> { ... }
}

A trait to ensure that we can create matrices and statiscial vectors from your point reference.

See crate::points for some pre-baked implementations.

Associated Types

type DenseIter: Iterator<Item = f32>[src]

The iterator type for this reference.

Loading content...

Required methods

pub fn dense_iter(&self) -> Self::DenseIter[src]

The actual call to the dense iterator that PointCloud uses.

Loading content...

Provided methods

pub fn dense(&self) -> Vec<f32>[src]

provided because this could be faster than iteration (for example a memcpy).

Loading content...

Implementations on Foreign Types

impl<'a> PointRef for &'a [f32][src]

type DenseIter = Copied<Iter<'a, f32>>

Loading content...

Implementors

impl<'a, S> PointRef for SparseRef<'a, f32, S> where
    S: TryInto<usize> + Ord + TryFrom<usize> + Debug + Copy + Send + Sync + 'static, 
[src]

type DenseIter = SparseDenseIter<'a, f32, S>

Loading content...