pub struct PointCloud {
pub points: Vec<Point>,
pub ambient_dim: usize,
}Expand description
Point cloud for TDA
Fields§
§points: Vec<Point>Points
ambient_dim: usizeDimension of ambient space
Implementations§
Source§impl PointCloud
impl PointCloud
Sourcepub fn distance_matrix(&self) -> Vec<f64>
pub fn distance_matrix(&self) -> Vec<f64>
Compute all pairwise distances
Sourcepub fn bounding_box(&self) -> Option<(Point, Point)>
pub fn bounding_box(&self) -> Option<(Point, Point)>
Get bounding box
Trait Implementations§
Source§impl Clone for PointCloud
impl Clone for PointCloud
Source§fn clone(&self) -> PointCloud
fn clone(&self) -> PointCloud
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PointCloud
impl RefUnwindSafe for PointCloud
impl Send for PointCloud
impl Sync for PointCloud
impl Unpin for PointCloud
impl UnwindSafe for PointCloud
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