13 ConvexPolygon Slice<T>::polygon_slice(
const Slice<T>& v)
const
14 requires std::is_same_v<T,Interval>
22 if(v.codomain().is_unbounded())
26 {t.ub(), (input_gate().ub()+
Interval(t.diam())*v.codomain().
ub()).
ub()},
27 {t.ub(), (input_gate().lb()+
Interval(t.diam())*v.codomain().
lb()).
lb()},
28 {t.lb(), input_gate().lb()},
29 {t.lb(), input_gate().ub()}
33 {t.lb(), (output_gate().ub()-
Interval(t.diam())*v.codomain().
lb()).
ub()},
34 {t.lb(), (output_gate().lb()-
Interval(t.diam())*v.codomain().
ub()).
lb()},
35 {t.ub(), output_gate().lb()},
36 {t.ub(), output_gate().ub()}
39 return p & p_fwd & p_bwd;
Represents a convex polygon defined by vertices enclosed in IntervalVectors.
Definition codac2_ConvexPolygon.h:25
Interval class, for representing closed and connected subsets of .
Definition codac2_Interval.h:49
double ub() const
Returns the upper bound of this.
Definition codac2_Interval_impl.h:115
double lb() const
Returns the lower bound of this.
Definition codac2_Interval_impl.h:110
auto lb() const
Returns a matrix containing the lower bounds of each interval element.
Definition codac2_MatrixBase_addons_IntervalMatrixBase.h:91
auto ub() const
Returns a matrix containing the upper bounds of each interval element.
Definition codac2_MatrixBase_addons_IntervalMatrixBase.h:103
Definition codac2_OctaSym.h:21
double prev_float(double x)
Returns the previous representable double-precision floating-point value before x.
Definition codac2_Interval_impl.h:614
Eigen::Matrix< Interval,-1, 1 > IntervalVector
Alias for a dynamic-size column vector of intervals.
Definition codac2_IntervalVector.h:25
double next_float(double x)
Returns the next representable double-precision floating-point value after x.
Definition codac2_Interval_impl.h:619