18 #define _USE_MATH_DEFINES
26 template<
typename T,
int N>
29 adoreMatrix<T, N, N> M;
30 M = dlib::identity_matrix<T>(N);
54 typedef adoreMatrix<T, 2, 2>
CT;
57 adoreMatrix<T, 2, 2> R;
58 R = dlib::ones_matrix<T>(2, 2);
59 R(0, 0) = 0; R(0, 1) = -
m_sub->
f(
x);
60 R(1, 0) =
m_sub->
f(
x); R(1, 1) = 0;
83 virtual void bound(
const DT& xmin,
const DT& xmax,
CT& ymin,
CT& ymax)
override
87 ymin(0, 0) = 0; ymin(0, 1) = (-sub_bound).lb;
88 ymin(1, 0) = sub_bound.
lb; ymin(1, 1) = 0;
89 ymax(0, 0) = 0; ymax(0, 1) = (-sub_bound).ub;
90 ymax(1, 0) = sub_bound.
ub; ymax(1, 1) = 0;
103 typedef adoreMatrix<T, 2, 2>
CT;
106 adoreMatrix<T, 2, 2> R;
107 R = dlib::ones_matrix<T>(2, 2);
132 virtual void bound(
const DT& xmin,
const DT& xmax,
CT& ymin,
CT& ymax)
override
138 ymin(0, 0) = cos_bound.
lb; ymin(0, 1) = (-sin_bound).lb;
139 ymin(1, 0) = sin_bound.
lb; ymin(1, 1) = cos_bound.
lb;
140 ymax(0, 0) = cos_bound.
ub; ymax(0, 1) = (-sin_bound).ub;
141 ymax(1, 0) = sin_bound.
ub; ymax(1, 1) = cos_bound.
ub;
Definition: alfunction.h:74
virtual void bound(const DT &xmin, const DT &xmax, CT &ymin, CT &ymax)=0
virtual ALFunction< DT, CT > * clone()=0
virtual CT f(DT x) const =0
virtual DT limitHi() const =0
virtual DT limitLo() const =0
virtual ALFunction< DT, CT > * create_derivative()=0
virtual void setLimits(DT lo, DT hi)=0
Definition: rotations.h:49
virtual CT f(DT x) const override
Definition: rotations.h:55
virtual DT limitHi() const override
Definition: rotations.h:63
T DT
Definition: rotations.h:53
RotationFunctionPD(ALFunction< T, T > *sub)
Definition: rotations.h:93
virtual DT limitLo() const override
Definition: rotations.h:67
virtual void setLimits(DT lo, DT hi) override
Definition: rotations.h:71
virtual ALFunction< T, adoreMatrix< T, 2, 2 > > * clone() override
Definition: rotations.h:75
virtual ~RotationFunctionPD()
Definition: rotations.h:94
virtual void bound(const DT &xmin, const DT &xmax, CT &ymin, CT &ymax) override
Definition: rotations.h:83
ALFunction< T, T > * m_sub
Definition: rotations.h:51
adoreMatrix< T, 2, 2 > CT
Definition: rotations.h:54
virtual ALFunction< DT, CT > * create_derivative() override
Definition: rotations.h:79
Definition: rotations.h:41
virtual void bound(const DT &xmin, const DT &xmax, CT &ymin, CT &ymax) override
Definition: rotations.h:132
virtual CT f(DT x) const override
Definition: rotations.h:104
adoreMatrix< T, 2, 2 > CT
Definition: rotations.h:103
RotationFunction(ALFunction< T, T > *sub)
Definition: rotations.h:144
virtual ALFunction< DT, CT > * create_derivative() override
Definition: rotations.h:128
virtual void setLimits(DT lo, DT hi) override
Definition: rotations.h:120
virtual DT limitLo() const override
Definition: rotations.h:116
virtual DT limitHi() const override
Definition: rotations.h:112
ALFunction< T, T > * m_sub
Definition: rotations.h:43
virtual ALFunction< T, adoreMatrix< T, 2, 2 > > * clone() override
Definition: rotations.h:124
T DT
Definition: rotations.h:102
virtual ~RotationFunction()
Definition: rotations.h:145
ALFunction< T, adoreMatrix< T, 2, 1 > > * rotate(ALFunction< T, T > *angle, ALFunction< T, adoreMatrix< T, 2, 1 >> *vector)
Definition: rotations.h:157
interval< T > cos(interval< T > x)
Definition: intervalarithmetic.h:225
interval< T > sin(interval< T > x)
Definition: intervalarithmetic.h:204
adoreMatrix< T, N, N > rotationMatrix(T angle)
Definition: rotations.h:27
x
Definition: adore_set_goal.py:30
Definition: areaofeffectconverter.h:20
Definition: intervalarithmetic.h:30
T ub
Definition: intervalarithmetic.h:31
T lb
Definition: intervalarithmetic.h:31