[][src]Struct rust_3d::PointCloud3D

pub struct PointCloud3D<P> where
    P: Is3D
{ pub data: Vec<P>, }

PointCloud3D, a collection of positions within 3D space

Fields

data: Vec<P>

Implementations

impl<P> PointCloud3D<P> where
    P: Is3D
[src]

pub fn new() -> PointCloud3D<P>[src]

Creates a new, empty point cloud

pub fn with_capacity(n: usize) -> PointCloud3D<P>[src]

Creates a new, empty point cloud with capacity

pub fn to_str(&self) -> String[src]

Serializes the point cloud

pub fn for_each_point<F>(&mut self, f: F) where
    F: FnMut(&mut P), 
[src]

Applies a function to each position

pub fn reserve_vertices(&mut self, n: usize)[src]

Reserves number of vertices

impl<P> PointCloud3D<P> where
    P: IsBuildable3D + Clone
[src]

pub fn parse(text: &str) -> Result<PointCloud3D<P>>[src]

Creates a new point cloud from an input string

pub fn append_ra<RA>(&mut self, ra: &RA) where
    RA: IsRandomAccessible<P>, 
[src]

Appends all elements of an IsRandomAccessible

Trait Implementations

impl<P: Clone> Clone for PointCloud3D<P> where
    P: Is3D
[src]

impl<P: Debug> Debug for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> Default for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> Display for PointCloud3D<P> where
    P: Is3D + Display
[src]

impl<P: Eq> Eq for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> From<PointCloud3D<P>> for Polygon3D<P> where
    P: Is3D
[src]

impl<P> From<Vec<P>> for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> HasBoundingBox3DMaybe for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> HasCenterOfGravity3D for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> HasLength for PointCloud3D<P> where
    P: Is3D
[src]

impl<P: Hash> Hash for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> Index<usize> for PointCloud3D<P> where
    P: Is3D
[src]

type Output = P

The returned type after indexing.

impl<P> IndexMut<usize> for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> Into<Vec<P>> for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> IsDataContainer<P> for PointCloud3D<P> where
    P: IsBuildable3D + Clone
[src]

impl<P> IsMatrix4Transformable for PointCloud3D<P> where
    P: Is3D + IsMatrix4Transformable + Clone
[src]

impl<P> IsMergeable for PointCloud3D<P> where
    P: Is3D + Clone
[src]

impl<P> IsMovable3D for PointCloud3D<P> where
    P: Is3D + IsMovable3D
[src]

impl<P> IsPushable<P> for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> IsRandomAccessible<P> for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> IsRandomInsertible<P> for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> IsScalable for PointCloud3D<P> where
    P: IsEditable3D
[src]

impl<P> IsSortable3D for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> IsSortableND for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> IsViewBuildable for PointCloud3D<P> where
    P: Is3D + Clone
[src]

impl<P: Ord> Ord for PointCloud3D<P> where
    P: Is3D
[src]

impl<P: PartialEq> PartialEq<PointCloud3D<P>> for PointCloud3D<P> where
    P: Is3D
[src]

impl<P: PartialOrd> PartialOrd<PointCloud3D<P>> for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> StructuralEq for PointCloud3D<P> where
    P: Is3D
[src]

impl<P> StructuralPartialEq for PointCloud3D<P> where
    P: Is3D
[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for PointCloud3D<P> where
    P: RefUnwindSafe

impl<P> Send for PointCloud3D<P> where
    P: Send

impl<P> Sync for PointCloud3D<P> where
    P: Sync

impl<P> Unpin for PointCloud3D<P> where
    P: Unpin

impl<P> UnwindSafe for PointCloud3D<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.