#[non_exhaustive]pub struct HalfspaceIntersection {
pub intersections: Vec<Vec<f64>>,
pub dual_facets: Vec<Vec<usize>>,
pub dual_vertices: Vec<usize>,
}Expand description
The intersection of half-spaces A x + b ≤ 0 (SciPy’s HalfspaceIntersection), given a
point strictly inside all of them: each half-space maps to the dual point
aᵢ / −(aᵢ·c + bᵢ) (relative to the interior point c), each facet of the dual points’
convex hull to a vertex of the intersection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.intersections: Vec<Vec<f64>>The vertices of the intersection, one per dual facet (SciPy’s intersections).
dual_facets: Vec<Vec<usize>>For each vertex, the half-spaces whose boundaries meet there (SciPy’s dual_facets).
dual_vertices: Vec<usize>The dual points’ hull vertices: the half-spaces that are not redundant.
Implementations§
Trait Implementations§
Source§impl Clone for HalfspaceIntersection
impl Clone for HalfspaceIntersection
Auto Trait Implementations§
impl Freeze for HalfspaceIntersection
impl RefUnwindSafe for HalfspaceIntersection
impl Send for HalfspaceIntersection
impl Sync for HalfspaceIntersection
impl Unpin for HalfspaceIntersection
impl UnsafeUnpin for HalfspaceIntersection
impl UnwindSafe for HalfspaceIntersection
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