pub struct PointCloud {
pub points: Vec<Point>,
pub metadata: Metadata,
}Expand description
Owned point cloud. Suitable for moderate-size conversion and tests. Large
production LAS/COPC/E57 adapters should implement streaming codecs using the
adapter traits in crate::adapters.
Fields§
§points: Vec<Point>§metadata: MetadataImplementations§
Source§impl PointCloud
impl PointCloud
pub fn new(points: Vec<Point>) -> Self
pub fn empty() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn bounds(&self) -> Option<Bounds3>
pub fn has_color(&self) -> bool
pub fn has_intensity(&self) -> bool
pub fn has_classification(&self) -> bool
pub fn has_gps_time(&self) -> bool
pub fn has_normals(&self) -> bool
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointCloud
impl Debug for PointCloud
Source§impl PartialEq for PointCloud
impl PartialEq for PointCloud
Source§fn eq(&self, other: &PointCloud) -> bool
fn eq(&self, other: &PointCloud) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointCloud
Auto Trait Implementations§
impl Freeze for PointCloud
impl RefUnwindSafe for PointCloud
impl Send for PointCloud
impl Sync for PointCloud
impl Unpin for PointCloud
impl UnsafeUnpin 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