codac 1.5.6
Loading...
Searching...
No Matches
codac2_CtcSegment.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include "codac2_Ctc.h"
14
15namespace codac2
16{
17 class CtcSegment : public Ctc<CtcSegment,IntervalVector>
18 {
19 public:
20
21 CtcSegment(const IntervalVector& a, const IntervalVector& b)
22 : Ctc<CtcSegment,IntervalVector>(2), _a(a), _b(b)
23 {
24 assert_release(a.size() == 2 && b.size() == 2 && "only 2d segments are supported");
25 }
26
27 void contract(IntervalVector& x) const;
28
29 protected:
30
31 const IntervalVector _a, _b;
32 };
33}