Struct rust_3d::PointCloud2D [] [src]

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

PointCloud2D, a collection of positions within 2D space

Fields

Methods

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

[src]

Creates a new, empty point cloud

[src]

Creates a new, empty point cloud with capacity

[src]

Serializes the point cloud

[src]

Applies a function to each position

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

[src]

Creates a new point cloud from an input string

[src]

Appends all elements of an IsRandomAccessible

Trait Implementations

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

[src]

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

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

[src]

Formats the value using the given formatter. Read more

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

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

[src]

Performs the mutable indexing (container[index]) operation.

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

[src]

Should return the number of elements within the collection

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

[src]

Should push an element to the end of collection

[src]

Should insert an element at the given index

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

[src]

Should move the object by the given offset

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

[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> HasCenterOfGravity2D for PointCloud2D<P> where
    P: Is2D
[src]

[src]

Should return the center of gravity

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

[src]

Should return the physical length

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

[src]

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

[src]

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]

[src]

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

[src]

Should sort all elements by the given dimension

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

[src]

Should sort all elements by x

[src]

Should sort all elements by y

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

[src]

Should merge other into this

[src]

Should return a combination of this and other

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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