pub struct ConvexHullWrapper<T: Float + ToBigInt> {
pub inner: ConvexHull<BigInt>,
pub conversion_factor: T,
}Expand description
A wrapper that holds a given points as a bigint. This can compute a convex hull robustly, although the computation is slower.
Fields§
§inner: ConvexHull<BigInt>§conversion_factor: TImplementations§
Source§impl<T: Float + ToBigInt> ConvexHullWrapper<T>
impl<T: Float + ToBigInt> ConvexHullWrapper<T>
pub fn try_new( points: &[Vec<T>], max_iter: Option<usize>, ) -> Result<Self, ErrorKind>
pub fn add_points(&mut self, points: &[Vec<T>]) -> Result<(), ErrorKind>
pub fn vertices_indices(&self) -> (Vec<Vec<T>>, Vec<usize>)
pub fn volume(&self) -> T
pub fn support_point(&self, direction: &[T]) -> Result<Vec<T>, ErrorKind>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ConvexHullWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConvexHullWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for ConvexHullWrapper<T>where
T: Send,
impl<T> Sync for ConvexHullWrapper<T>where
T: Sync,
impl<T> Unpin for ConvexHullWrapper<T>where
T: Unpin,
impl<T> UnsafeUnpin for ConvexHullWrapper<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ConvexHullWrapper<T>where
T: UnwindSafe,
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