Struct rust_3d::point_cloud_3d::PointCloud3D [] [src]

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

PointCloud3D, a collection of positions within 3D space

Fields

Methods

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

Creates a new, empty point cloud

Creates a new, empty point cloud with capacity

Serializes the point cloud

Applies a function to each position

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

Creates a new point cloud from an input string

Appends all elements of an IsRandomAccessible

Trait Implementations

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

Returns the "default value" for a type. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

The returned type after indexing

The method for the indexing (container[index]) operation

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

The method for the mutable indexing (container[index]) operation

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

Should return the number of elements within the collection

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

Should push an element to the end of collection

Should insert an element at the given index

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

Should move the object by the given offset

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

Should return the bounding box as a pair of two points. The first point should be the minimum for all coordinates, the second the maximum for all coordinates

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

Should return the center of gravity

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

Should return the physical length

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

Should apply the view and only keep items indexed within the view. Should return an error if any index is out of bounds

Should create a new object consisting only of items indexed within the view. Should return an error if any index is out of bounds

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

Should return the number of dimensions. E.g. 2 for 2D space, 3 for 3D space etc.

Should sort all elements by the given dimension

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

Should sort all elements by x

Should sort all elements by y

Should sort all elements by z

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

Should merge other into this

Should return a combination of this and other

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

Formats the value using the given formatter. Read more