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.

2109  {
2110  x0 = p.x0;
2111  y0 = p.y0;
2112  theta= p.theta;
2113  sint = p.sint;
2114  cost = p.cost;
2115  a = p.a;
2116  b = p.b;
2117  a2 = p.a2;
2118  b2 = p.b2;
2119  }
T b
Definition: homog2d.hpp:2124
T x0
Definition: homog2d.hpp:2121
T theta
angle
Definition: homog2d.hpp:2122
T cost
Definition: homog2d.hpp:2123
T a2
Definition: homog2d.hpp:2125
T y0
center
Definition: homog2d.hpp:2121
T sint
Definition: homog2d.hpp:2123
T b2
squared values of a and b
Definition: homog2d.hpp:2125
T a
Definition: homog2d.hpp:2124

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
2133 {
2134  f << "EllParams: origin=" << par.x0 << "," << par.y0
2135  << " angle=" << par.theta *180./M_PI
2136  << " a=" << par.a << " b=" << par.b
2137  << ' ';
2138  return f;
2139 }
#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: