pub fn new(vertices: Vec<Point<f64>>, abs: Abstract) -> Self {
        // There must be as many abstract vertices as concrete ones.
        debug_assert_eq!(
            abs.vertex_count(),
            vertices.len(),
            "Abstract vertex count doesn't match concrete vertex count!"
        );

        // All vertices must have the same dimension.
        if cfg!(debug_assertions) {
            if let Some(vertex0) = vertices.get(0) {
                for vertex1 in &vertices {
                    debug_assert_eq!(vertex0.len(), vertex1.len());
                }
            }
        }

        // With no further info, we create a generic name for the polytope.
        Self { vertices, abs }
    }
/// Initializes a new concrete polytope from a set of vertices and an
/// underlying abstract polytope. Does some debug assertions on the input.
Initializes a new concrete polytope from a set of vertices and an
underlying abstract polytope. Does some debug assertions on the input.
Initializes a new concrete polytope from a set of vertices and an underlying abstract polytope . Does some debug assertions on the input .
pub fn new(vertices: Vec<Point<f64>>, abs: Abstract) -> Self {
        // There must be as many abstract vertices as concrete ones.
        debug_assert_eq!(
            abs.vertex_count(),
            vertices.len(),
            "Abstract vertex count doesn't match concrete vertex count!"
        );
        // All vertices must have the same dimension.
        if cfg!(debug_assertions) {
            if let Some(vertex0) = vertices.get(0) {
                for vertex1 in &vertices {
                    debug_assert_eq!(vertex0.len(), vertex1.len());
                }
            }
        }
        // With no further info, we create a generic name for the polytope.
        Self { vertices, abs }
    }
pub fn new ( vertices : Vec < Point < f64 > > , abs : Abstract ) -> Self { // There must be as many abstract vertices as concrete ones. debug_assert_eq ! ( abs vertex_count ( ) vertices len ( ) " " ) ; // All vertices must have the same dimension. if cfg ! ( debug_assertions ) { if let Some ( vertex0 ) = vertices . get ( 0 ) { for vertex1 in & vertices { debug_assert_eq ! ( vertex0 len ( ) vertex1 len ( ) ) ; } } } // With no further info, we create a generic name for the polytope. Self { vertices , abs } }
Initializes a new concrete polytope from a set of vertices and an
underlying abstract polytope.
Initializes a new concrete polytope from a set of vertices and an underlying abstract polytope .
vertices
Vec<Point<f64>>
abs
Abstract