28 #if defined(DigitizedReflection_RECURSES)
29 #error Recursive header files inclusion detected in DigitizedReflection.h
32 #define DigitizedReflection_RECURSES
34 #if !defined DigitizedReflection_h
36 #define DigitizedReflection_h
43 template<
typename TSpace,
typename TInputValue =
typename TSpace::RealPo
int,
typename TOutputValue =
typename TSpace::Po
int>
56 TOutputValue
operator()(
const TInputValue & aInput )
const
61 Z2i::RealPoint p=x_r - 2.0*((x_r[0]*m_r[0] + x_r[1]*m_r[1])/(m_r[0]*m_r[0] + m_r[1]*m_r[1]))*m_r;
62 return roundingOpe(p);
69 #undef DigitizedReflection_RECURSES
Aim: Implements basic operations that will be used in Point and Vector classes.
Space::RealPoint RealPoint
DGtal is the top-level namespace which contains all DGtal functions and types.
TOutputValue operator()(const TInputValue &aInput) const
Reflection(const GAVector< TSpace > &m=GAVector< TSpace >())
GAVector< TSpace > normalVector