pub struct MinkowskiSumComputer {
pub dim: usize,
}Expand description
Computer for Minkowski sums of polytopes with additional features.
The Minkowski sum A + B = {a + b : a ∈ A, b ∈ B}. For polytopes in V-representation, this is the convex hull of all pairwise sums.
Fields§
§dim: usizeAmbient dimension.
Implementations§
Source§impl MinkowskiSumComputer
impl MinkowskiSumComputer
Sourcepub fn compute(&self, a: &[Vec<f64>], b: &[Vec<f64>]) -> Vec<Vec<f64>>
pub fn compute(&self, a: &[Vec<f64>], b: &[Vec<f64>]) -> Vec<Vec<f64>>
Compute the Minkowski sum of two polytopes (V-representations). Returns the list of candidate extreme points (not yet hull-reduced).
Sourcepub fn dilate(&self, vertices: &[Vec<f64>], t: f64) -> Vec<Vec<f64>>
pub fn dilate(&self, vertices: &[Vec<f64>], t: f64) -> Vec<Vec<f64>>
Compute the dilation tK = {tx : x ∈ K} for scalar t > 0.
Sourcepub fn translate(&self, vertices: &[Vec<f64>], v: &[f64]) -> Vec<Vec<f64>>
pub fn translate(&self, vertices: &[Vec<f64>], v: &[f64]) -> Vec<Vec<f64>>
Compute the translation K + v = {x + v : x ∈ K}.
Trait Implementations§
Source§impl Clone for MinkowskiSumComputer
impl Clone for MinkowskiSumComputer
Source§fn clone(&self) -> MinkowskiSumComputer
fn clone(&self) -> MinkowskiSumComputer
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 MinkowskiSumComputer
impl RefUnwindSafe for MinkowskiSumComputer
impl Send for MinkowskiSumComputer
impl Sync for MinkowskiSumComputer
impl Unpin for MinkowskiSumComputer
impl UnsafeUnpin for MinkowskiSumComputer
impl UnwindSafe for MinkowskiSumComputer
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