pub struct ConvexHull {
pub vertices: Vec<i64>,
pub points: Vec<[f64; 2]>,
}Expand description
The convex hull of a 2D point set, as returned by convex_hull_2d.
Fields§
§vertices: Vec<i64>The indices (rows of the input matrix) of the corners of the hull, in order along the boundary. Points in the interior of a side are not corners.
points: Vec<[f64; 2]>The coordinates of the corners, in the same order as vertices.
Implementations§
Trait Implementations§
Source§impl Clone for ConvexHull
impl Clone for ConvexHull
Source§fn clone(&self) -> ConvexHull
fn clone(&self) -> ConvexHull
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConvexHull
impl Debug for ConvexHull
Source§impl PartialEq for ConvexHull
impl PartialEq for ConvexHull
Source§fn eq(&self, other: &ConvexHull) -> bool
fn eq(&self, other: &ConvexHull) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConvexHull
Auto Trait Implementations§
impl Freeze for ConvexHull
impl RefUnwindSafe for ConvexHull
impl Send for ConvexHull
impl Sync for ConvexHull
impl Unpin for ConvexHull
impl UnsafeUnpin for ConvexHull
impl UnwindSafe for ConvexHull
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more