[−][src]Struct rust_3d::Polygon2D
Polygon2D, a polygon within 2D space
Trait Implementations
impl<P: Clone> Clone for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P: Debug> Debug for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> Default for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> Display for Polygon2D<P> where
P: Is2D + Display,
[src]
P: Is2D + Display,
impl<P: Eq> Eq for Polygon2D<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> HasBoundingBox2DMaybe for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
fn bounding_box_maybe(&self) -> Result<BoundingBox2D>
[src]
impl<P> HasCenterOfGravity2D for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
fn center_of_gravity(&self) -> Result<Point2D>
[src]
impl<P> HasLength for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P: Hash> Hash for Polygon2D<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> IsEditablePolygon<P> for Polygon2D<P> where
P: Is2D + Clone,
[src]
P: Is2D + Clone,
fn add_vertex(&mut self, vertex: P) -> VId
[src]
fn change_vertex(&mut self, vertexid: VId, vertex: P) -> Result<()>
[src]
impl<P> IsMatrix3Transformable for Polygon2D<P> where
P: Is2D + IsMatrix3Transformable + Clone,
[src]
P: Is2D + IsMatrix3Transformable + Clone,
impl<P> IsMovable2D for Polygon2D<P> where
P: Is2D + IsMovable2D,
[src]
P: Is2D + IsMovable2D,
impl<P> IsPolygon<P> for Polygon2D<P> where
P: Is2D + Clone,
[src]
P: Is2D + Clone,
fn num_segments(&self) -> usize
[src]
fn segment_vertex_ids(&self, segmentid: SId) -> Result<(VId, VId)>
[src]
fn segment_vertices(&self, segmentid: SId) -> Result<(P, P)>
[src]
fn vertex(&self, vertexid: VId) -> Result<P>
[src]
fn num_vertices(&self) -> usize
[src]
impl<P> IsScalable for Polygon2D<P> where
P: IsEditable2D,
[src]
P: IsEditable2D,
impl<P: Ord> Ord for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
fn cmp(&self, other: &Polygon2D<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<Polygon2D<P>> for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P: PartialOrd> PartialOrd<Polygon2D<P>> for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
fn partial_cmp(&self, other: &Polygon2D<P>) -> Option<Ordering>
[src]
fn lt(&self, other: &Polygon2D<P>) -> bool
[src]
fn le(&self, other: &Polygon2D<P>) -> bool
[src]
fn gt(&self, other: &Polygon2D<P>) -> bool
[src]
fn ge(&self, other: &Polygon2D<P>) -> bool
[src]
impl<P> StructuralEq for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
impl<P> StructuralPartialEq for Polygon2D<P> where
P: Is2D,
[src]
P: Is2D,
Auto Trait Implementations
impl<P> RefUnwindSafe for Polygon2D<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for Polygon2D<P> where
P: Send,
P: Send,
impl<P> Sync for Polygon2D<P> where
P: Sync,
P: Sync,
impl<P> Unpin for Polygon2D<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for Polygon2D<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>,