homog2d library
Public Member Functions | Public Attributes | Friends | List of all members
h2d::detail::EllParams< T > Struct Template Reference

Holds 9 parameters of Ellipse_. More...

#include <homog2d.hpp>

Public Member Functions

 EllParams ()=default
 
template<typename U >
 EllParams (const EllParams< U > &p)
 Copy-constructor is needed when converting from one type to another type. More...
 

Public Attributes

a
 
a2
 
b
 
b2
 squared values of a and b More...
 
cost
 \( \sin( \theta), \cos( \theta) \) More...
 
sint
 
theta = 0.
 angle More...
 
x0
 
y0
 center More...
 

Friends

template<typename U >
struct EllParams
 
template<typename U >
std::ostream & operator<< (std::ostream &f, const EllParams< U > &par)
 

Detailed Description

template<typename T>
struct h2d::detail::EllParams< T >

Holds 9 parameters of Ellipse_.

Constructor & Destructor Documentation

◆ EllParams() [1/2]

template<typename T>
h2d::detail::EllParams< T >::EllParams ( )
default

◆ EllParams() [2/2]

template<typename T>
template<typename U >
h2d::detail::EllParams< T >::EllParams ( const EllParams< U > &  p)
inline

Copy-constructor is needed when converting from one type to another type.

2143  {
2144  x0 = p.x0;
2145  y0 = p.y0;
2146  theta= p.theta;
2147  sint = p.sint;
2148  cost = p.cost;
2149  a = p.a;
2150  b = p.b;
2151  a2 = p.a2;
2152  b2 = p.b2;
2153  }
T b
Definition: homog2d.hpp:2158
T x0
Definition: homog2d.hpp:2155
T theta
angle
Definition: homog2d.hpp:2156
T cost
Definition: homog2d.hpp:2157
T a2
Definition: homog2d.hpp:2159
T y0
center
Definition: homog2d.hpp:2155
T sint
Definition: homog2d.hpp:2157
T b2
squared values of a and b
Definition: homog2d.hpp:2159
T a
Definition: homog2d.hpp:2158

Friends And Related Function Documentation

◆ EllParams

template<typename T>
template<typename U >
friend struct EllParams
friend

◆ operator<<

template<typename T>
template<typename U >
std::ostream& operator<< ( std::ostream &  f,
const EllParams< U > &  par 
)
friend
2167 {
2168  f << "EllParams: origin=" << par.x0 << "," << par.y0
2169  << " angle=" << par.theta *180./M_PI
2170  << " a=" << par.a << " b=" << par.b
2171  << ' ';
2172  return f;
2173 }
#define M_PI
Definition: homog2d.hpp:235

Member Data Documentation

◆ a

template<typename T>
T h2d::detail::EllParams< T >::a

◆ a2

template<typename T>
T h2d::detail::EllParams< T >::a2

◆ b

template<typename T>
T h2d::detail::EllParams< T >::b

◆ b2

template<typename T>
T h2d::detail::EllParams< T >::b2

squared values of a and b

◆ cost

template<typename T>
T h2d::detail::EllParams< T >::cost

\( \sin( \theta), \cos( \theta) \)

◆ sint

template<typename T>
T h2d::detail::EllParams< T >::sint

◆ theta

template<typename T>
T h2d::detail::EllParams< T >::theta = 0.

angle

◆ x0

template<typename T>
T h2d::detail::EllParams< T >::x0

◆ y0

template<typename T>
T h2d::detail::EllParams< T >::y0

center


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