Struct ConvexHull2
pub struct ConvexHull2 { /* private fields */ }Expand description
A 2D convex hull point set descriptor.
Implementations§
§impl ConvexHull2
impl ConvexHull2
pub const fn new(points: Vec<Point2>) -> ConvexHull2
pub const fn new(points: Vec<Point2>) -> ConvexHull2
Creates a hull descriptor from input points.
pub fn point_count(&self) -> usize
pub fn point_count(&self) -> usize
Returns the number of input points.
Trait Implementations§
§impl Clone for ConvexHull2
impl Clone for ConvexHull2
§fn clone(&self) -> ConvexHull2
fn clone(&self) -> ConvexHull2
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ConvexHull2
impl Debug for ConvexHull2
§impl PartialEq for ConvexHull2
impl PartialEq for ConvexHull2
impl StructuralPartialEq for ConvexHull2
Auto Trait Implementations§
impl Freeze for ConvexHull2
impl RefUnwindSafe for ConvexHull2
impl Send for ConvexHull2
impl Sync for ConvexHull2
impl Unpin for ConvexHull2
impl UnsafeUnpin for ConvexHull2
impl UnwindSafe for ConvexHull2
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