pub enum SetDescription {
HalfSpace {
normal: Vec<f64>,
offset: f64,
},
Polytope {
inequalities: Vec<(Vec<f64>, f64)>,
},
Ball {
center: Vec<f64>,
radius: f64,
},
Simplex {
vertices: Vec<Vec<f64>>,
},
Intersection(Vec<Box<SetDescription>>),
}Expand description
Description of a convex set.
Variants§
HalfSpace
Half-space { x : <normal, x> <= offset }.
Polytope
Polytope defined by linear inequalities Ax <= b. Each entry is (row of A, corresponding b_i).
Ball
Euclidean ball { x : ||x - center|| <= radius }.
Simplex
Convex hull of given vertices.
Intersection(Vec<Box<SetDescription>>)
Intersection of a list of sets.
Trait Implementations§
Source§impl Clone for SetDescription
impl Clone for SetDescription
Source§fn clone(&self) -> SetDescription
fn clone(&self) -> SetDescription
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 moreAuto Trait Implementations§
impl Freeze for SetDescription
impl RefUnwindSafe for SetDescription
impl Send for SetDescription
impl Sync for SetDescription
impl Unpin for SetDescription
impl UnsafeUnpin for SetDescription
impl UnwindSafe for SetDescription
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