codac 2.0.0
Loading...
Searching...
No Matches
codac2_SepCartPolar.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include "codac2_Sep.h"
13#include "codac2_Collection.h"
14
15namespace codac2
16{
17 // For separating a polar box from a Sep expressed in Cartesian coordinates
18 class SepCartPolar : public Sep<SepCartPolar>
19 {
20 public:
21
22 template<typename S>
23 requires IsSepBaseOrPtr<S>
24 SepCartPolar(const S& s)
25 : Sep<SepCartPolar>(2), _sep(s)
26 {
27 assert_release(size_of(s) == 2);
28 }
29
30 BoxPair separate(const IntervalVector& x) const;
31
32 protected:
33
34 const Collection<SepBase> _sep;
35 };
36}
Definition codac2_OctaSym.h:21
Eigen::Matrix< Interval,-1, 1 > IntervalVector
Alias for a dynamic-size column vector of intervals.
Definition codac2_IntervalVector.h:25