codac 1.5.6
Loading...
Searching...
No Matches
codac::CtcPolar Class Reference

Minimal contractor for the polar constraint: x = rho*cos(theta) y = rho*sin(theta) theta = angle(x,y) sqr(rho) = sqr(x)+sqr(y) More...

#include <codac_CtcPolar.h>

Inherits Ctc.

Public Member Functions

 CtcPolar ()
 Creates the contractor.
 
virtual void contract (IntervalVector &x)
 \(\mathcal{C}_{\textrm{polar}}\big([\mathbf{x}]\big)\)
 
void contract (Interval &x, Interval &y, Interval &rho, Interval &theta)
 \(\mathcal{C}_{\textrm{polar}}\big([x],[y],[\rho],[\theta]\big)\)
 

Detailed Description

Minimal contractor for the polar constraint: x = rho*cos(theta) y = rho*sin(theta) theta = angle(x,y) sqr(rho) = sqr(x)+sqr(y)

Member Function Documentation

◆ contract() [1/2]

virtual void codac::CtcPolar::contract ( IntervalVector & x)
virtual

\(\mathcal{C}_{\textrm{polar}}\big([\mathbf{x}]\big)\)

Parameters
xthe 4d box of domains: (x,y,rho,theta)

◆ contract() [2/2]

void codac::CtcPolar::contract ( Interval & x,
Interval & y,
Interval & rho,
Interval & theta )

\(\mathcal{C}_{\textrm{polar}}\big([x],[y],[\rho],[\theta]\big)\)

Parameters
xfirst Cartesian component
ysecond Cartesian component
rhofirst polar component
thetasecond polar component

The documentation for this class was generated from the following file: