pub struct PointCloud<T: Float, const N: usize>(pub Vec<Point<T, N>>);Expand description
A collection of points.
Tuple Fields§
§0: Vec<Point<T, N>>Implementations§
Source§impl<T: Float, const N: usize> PointCloud<T, N>
impl<T: Float, const N: usize> PointCloud<T, N>
Sourcepub fn push_point(&mut self, p: Point<T, N>)
pub fn push_point(&mut self, p: Point<T, N>)
Add a new point.
Sourcepub fn distance_matrix(&self) -> DistanceMatrix<T>
pub fn distance_matrix(&self) -> DistanceMatrix<T>
Return the distance matrix of the point cloud, where the order is the order in which the points where added.
Trait Implementations§
Source§impl<const N: usize> From<PointCloud<f64, N>> for PointCloud<OrderedFloat<f64>, N>
impl<const N: usize> From<PointCloud<f64, N>> for PointCloud<OrderedFloat<f64>, N>
Source§fn from(points: PointCloud<f64, N>) -> Self
fn from(points: PointCloud<f64, N>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T, const N: usize> Freeze for PointCloud<T, N>
impl<T, const N: usize> RefUnwindSafe for PointCloud<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for PointCloud<T, N>where
T: Send,
impl<T, const N: usize> Sync for PointCloud<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for PointCloud<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for PointCloud<T, N>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more