[−][src]Struct rust_3d::PointCloud2D
PointCloud2D, a collection of positions within 2D space
Fields
data: Vec<P>
Implementations
impl<P> PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
pub fn new() -> PointCloud2D<P>
[src]
Creates a new, empty point cloud
pub fn with_capacity(n: usize) -> PointCloud2D<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]
F: FnMut(&mut P),
Applies a function to each position
pub fn reserve_vertices(&mut self, n: usize)
[src]
Reserves number of vertices
impl<P> PointCloud2D<P> where
P: IsBuildable2D + Clone,
[src]
P: IsBuildable2D + Clone,
pub fn parse(text: &str) -> Result<PointCloud2D<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]
RA: IsRandomAccessible<P>,
Appends all elements of an IsRandomAccessible
Trait Implementations
impl<P: Clone> Clone for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
fn clone(&self) -> PointCloud2D<P>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P: Debug> Debug for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> Default for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> Display for PointCloud2D<P> where
P: Is2D + Display,
[src]
P: Is2D + Display,
impl<P: Eq> Eq for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> From<PointCloud2D<P>> for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
fn from(pc: PointCloud2D<P>) -> Self
[src]
impl<P> From<Vec<P>> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> HasBoundingBox2DMaybe for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
fn bounding_box_maybe(&self) -> Result<BoundingBox2D>
[src]
impl<P> HasCenterOfGravity2D for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
fn center_of_gravity(&self) -> Result<Point2D>
[src]
impl<P> HasLength for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P: Hash> Hash for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<P> Index<usize> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> IndexMut<usize> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> Into<Vec<P>> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> IsDataContainer<P> for PointCloud2D<P> where
P: IsBuildable2D + Clone,
[src]
P: IsBuildable2D + Clone,
fn reserve_d(&mut self, n: usize)
[src]
fn len_d(&self) -> usize
[src]
fn push_d(&mut self, p: P)
[src]
fn get_d(&self, index: usize) -> P
[src]
fn set_d(&mut self, index: usize, p: P)
[src]
impl<P> IsMatrix3Transformable for PointCloud2D<P> where
P: Is2D + IsMatrix3Transformable + Clone,
[src]
P: Is2D + IsMatrix3Transformable + Clone,
impl<P> IsMergeable for PointCloud2D<P> where
P: Is2D + Clone,
[src]
P: Is2D + Clone,
impl<P> IsMovable2D for PointCloud2D<P> where
P: Is2D + IsMovable2D,
[src]
P: Is2D + IsMovable2D,
impl<P> IsPushable<P> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> IsRandomAccessible<P> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> IsRandomInsertible<P> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> IsScalable for PointCloud2D<P> where
P: IsEditable2D,
[src]
P: IsEditable2D,
impl<P> IsSortable2D for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> IsSortableND for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> IsViewBuildable for PointCloud2D<P> where
P: Is2D + Clone,
[src]
P: Is2D + Clone,
fn apply_view(&mut self, view: &View) -> Result<()>
[src]
fn from_view(&self, view: &View) -> Result<Self>
[src]
impl<P: Ord> Ord for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
fn cmp(&self, other: &PointCloud2D<P>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<P: PartialEq> PartialEq<PointCloud2D<P>> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
fn eq(&self, other: &PointCloud2D<P>) -> bool
[src]
fn ne(&self, other: &PointCloud2D<P>) -> bool
[src]
impl<P: PartialOrd> PartialOrd<PointCloud2D<P>> for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
fn partial_cmp(&self, other: &PointCloud2D<P>) -> Option<Ordering>
[src]
fn lt(&self, other: &PointCloud2D<P>) -> bool
[src]
fn le(&self, other: &PointCloud2D<P>) -> bool
[src]
fn gt(&self, other: &PointCloud2D<P>) -> bool
[src]
fn ge(&self, other: &PointCloud2D<P>) -> bool
[src]
impl<P> StructuralEq for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> StructuralPartialEq for PointCloud2D<P> where
P: Is2D,
[src]
P: Is2D,
Auto Trait Implementations
impl<P> RefUnwindSafe for PointCloud2D<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for PointCloud2D<P> where
P: Send,
P: Send,
impl<P> Sync for PointCloud2D<P> where
P: Sync,
P: Sync,
impl<P> Unpin for PointCloud2D<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for PointCloud2D<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,