codac 2.1.2
Loading...
Searching...
No Matches
codac2_Parallelepiped.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include <vector>
13#include "codac2_Vector.h"
14#include "codac2_Matrix.h"
16#include "codac2_Zonotope.h"
17#include "codac2_BoolInterval.h"
18
19namespace codac2
20{
30 class Parallelepiped : public Zonotope
31 {
32 public:
33
40 Parallelepiped(const Vector& c, const Matrix& A);
41
49
56 static Parallelepiped empty(Index n);
57
63 std::vector<Vector> vertices() const;
64
72 BoolInterval contains(const Vector& v) const;
73
82
91
92 private:
93 explicit Parallelepiped(Zonotope &&Z) : Zonotope(Z) {
94 assert_release(A.cols()==A.rows());
95 }
96
97 };
98
108}
Class representing a parallelepiped .
Definition codac2_Parallelepiped.h:31
BoolInterval is_superset(const IntervalVector &x) const
Checks if a given box is contained within the parallelepiped. The matrix A has to be square and inver...
BoolInterval contains(const Vector &v) const
Checks if a given point is contained within the parallelepiped. The matrix A has to be square and inv...
static Parallelepiped reduction(const Zonotope &Z)
Constructs a new n-parallelepiped as the reduction (simplification) of an existing zonotope.
Parallelepiped operator&(const IntervalVector &x) const
Computes the intersection of the parallelepiped with a given box. The matrix A has to be square and i...
std::vector< Vector > vertices() const
Computes the vertices of the parallelepiped.
Parallelepiped(const Vector &c, const Matrix &A)
Constructs a n-parallelepiped object with a given center and shape matrix.
static Parallelepiped empty(Index n)
Constructs an empty n-parallelepiped.
Zonotope(const Vector &c, const Matrix &A)
Constructs a n-zonotope object with a given center and shape matrix.
Vector c
Center of the zonotope.
Definition codac2_Zonotope.h:113
Matrix A
Shape matrix of the zonotope.
Definition codac2_Zonotope.h:118
Definition codac2_OctaSym.h:21
Eigen::Matrix< double,-1, 1 > Vector
Alias for a dynamically-sized column vector of doubles.
Definition codac2_Vector.h:24
Eigen::Matrix< Interval,-1, 1 > IntervalVector
Alias for a dynamic-size column vector of intervals.
Definition codac2_IntervalVector.h:25
CtcInterType< typenameC1::ContractedTypes >::Ctc operator&(const C1 &c1, const C2 &c2)
Builds an intersection contractor from two contractors.
Definition codac2_CtcInter.h:230
BoolInterval
Enumeration representing a boolean interval.
Definition codac2_BoolInterval.h:26
Eigen::Matrix< double,-1,-1 > Matrix
Alias for a dynamic-size matrix of doubles.
Definition codac2_Matrix.h:26