codac
2.0.0
Loading...
Searching...
No Matches
src
core
contractors
codac2_CtcSegment.h
Go to the documentation of this file.
1
9
10
#pragma once
11
12
#include "
codac2_Ctc.h
"
13
#include "
codac2_IntervalVector.h
"
14
#include "
codac2_Segment.h
"
15
16
namespace
codac2
17
{
18
class
CtcSegment :
public
Ctc<CtcSegment,IntervalVector>
19
{
20
public
:
21
22
CtcSegment(
const
IntervalVector
& a,
const
IntervalVector
& b)
23
: Ctc<CtcSegment,
IntervalVector
>(2), _ab(Segment(a,b))
24
{
25
assert_release(a.size() == 2 && b.size() == 2 &&
"only 2d segments are supported"
);
26
}
27
28
CtcSegment(
const
Segment& ab)
29
: Ctc<CtcSegment,
IntervalVector
>(2), _ab(ab)
30
{ }
31
32
void
contract(
IntervalVector
& x)
const
;
33
34
protected
:
35
36
const
Segment _ab;
37
};
38
}
codac2_Ctc.h
codac2_IntervalVector.h
codac2_Segment.h
codac2
Definition
codac2_OctaSym.h:21
codac2::IntervalVector
Eigen::Matrix< Interval,-1, 1 > IntervalVector
Alias for a dynamic-size column vector of intervals.
Definition
codac2_IntervalVector.h:25
Generated by
1.13.0