Struct rust_3d::point_cloud_2d::PointCloud2D [] [src]

pub struct PointCloud2D<P> where
    P: Is2D
{ pub data: Vec<Box<P>>, }

PointCloud2D, a collection of positions within 2D space

Fields

Methods

impl<P> PointCloud2D<P> where
    P: Is2D
[src]

Creates a new, empty point cloud

Serializes the point cloud

Applies a function to each position

impl<P> PointCloud2D<P> where
    P: IsBuildable2D + Clone
[src]

Creates a new point cloud from an input string

Trait Implementations

impl<P> Clone for PointCloud2D<P> where
    P: Is2D + Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P> Index<usize> for PointCloud2D<P> where
    P: Is2D
[src]

The returned type after indexing

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

impl<P> IndexMut<usize> for PointCloud2D<P> where
    P: Is2D
[src]

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

impl<P> IsRandomAccessible<P> for PointCloud2D<P> where
    P: Is2D
[src]

Should return the number of elements within the collection

impl<P> IsRandomInsertible<P> for PointCloud2D<P> where
    P: Is2D
[src]

Should push an element to the end of collection

Should insert an element at the given index

impl<P> IsMoveable2D for PointCloud2D<P> where
    P: Is2D + IsMoveable2D
[src]

Should move the object by the given offset

impl<P> HasBoundingBox2D for PointCloud2D<P> where
    P: Is2D
[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

Returns the minimum position of the bounding box

Returns the maximum position of the bounding box

Returns the size the bounding box within the x-dimension

Returns the size the bounding box within the y-dimension

Returns the center of the bounding box

Tests whether this bounding box is within the other

Tests whether this bounding box contains a position

Tests whether this bounding box contains the other

Tests whether this bounding box and the other overlap in any way

impl<P> HasCenterOfGravity2D for PointCloud2D<P> where
    P: Is2D
[src]

Should return the center of gravity

impl<P> HasLength for PointCloud2D<P> where
    P: Is2D
[src]

Should return the physical length

impl<P> IsViewBuildable for PointCloud2D<P> where
    P: Is2D + 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 PointCloud2D<P> where
    P: Is2D
[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> IsSortable2D for PointCloud2D<P> where
    P: Is2D
[src]

Should sort all elements by x

Should sort all elements by y

impl<P> IsMergeable for PointCloud2D<P> where
    P: Is2D + Clone
[src]

Should merge other into this

Should return a combination of this and other

impl<P> Display for PointCloud2D<P> where
    P: Is2D + Display
[src]

Formats the value using the given formatter. Read more