pub struct PointCloud<T> {
pub points: Vec<T>,
}
Expand description
A generic point cloud container
Fields§
§points: Vec<T>
Implementations§
Source§impl<T> PointCloud<T>
impl<T> PointCloud<T>
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a new point cloud with specified capacity
Sourcepub fn from_points(points: Vec<T>) -> Self
pub fn from_points(points: Vec<T>) -> Self
Create a point cloud from a vector of points
Source§impl PointCloud<Point3f>
impl PointCloud<Point3f>
Sourcepub fn transform(&mut self, transform: &Transform3D)
pub fn transform(&mut self, transform: &Transform3D)
Apply a transformation to all points in the cloud
Trait Implementations§
Source§impl<T: Clone> Clone for PointCloud<T>
impl<T: Clone> Clone for PointCloud<T>
Source§fn clone(&self) -> PointCloud<T>
fn clone(&self) -> PointCloud<T>
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 moreSource§impl<T: Debug> Debug for PointCloud<T>
impl<T: Debug> Debug for PointCloud<T>
Source§impl<T> Default for PointCloud<T>
impl<T> Default for PointCloud<T>
Source§impl<'de, T> Deserialize<'de> for PointCloud<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PointCloud<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Drawable for PointCloud<T>
impl<T> Drawable for PointCloud<T>
Source§impl<T> Extend<T> for PointCloud<T>
impl<T> Extend<T> for PointCloud<T>
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T> FromIterator<T> for PointCloud<T>
impl<T> FromIterator<T> for PointCloud<T>
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl<T> Index<usize> for PointCloud<T>
impl<T> Index<usize> for PointCloud<T>
Source§impl<T> IndexMut<usize> for PointCloud<T>
impl<T> IndexMut<usize> for PointCloud<T>
Source§impl<'a, T> IntoIterator for &'a PointCloud<T>
impl<'a, T> IntoIterator for &'a PointCloud<T>
Source§impl<'a, T> IntoIterator for &'a mut PointCloud<T>
impl<'a, T> IntoIterator for &'a mut PointCloud<T>
Source§impl<T> IntoIterator for PointCloud<T>
impl<T> IntoIterator for PointCloud<T>
Auto Trait Implementations§
impl<T> Freeze for PointCloud<T>
impl<T> RefUnwindSafe for PointCloud<T>where
T: RefUnwindSafe,
impl<T> Send for PointCloud<T>where
T: Send,
impl<T> Sync for PointCloud<T>where
T: Sync,
impl<T> Unpin for PointCloud<T>where
T: Unpin,
impl<T> UnwindSafe for PointCloud<T>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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.