DGtal 2.0.0
Loading...
Searching...
No Matches
AngleLessCell Struct Reference

Public Types

typedef DGtal::Z2i::KSpace KSpace
typedef KSpace::SCell SCell
typedef KSpace::Point Point

Public Member Functions

 AngleLessCell (const KSpace &kspace, const double h)
bool operator() (const SCell &a, const SCell &b) const

Data Fields

const KSpace_kspace
const double _h

Detailed Description

Definition at line 69 of file testProjection.cpp.

Member Typedef Documentation

◆ KSpace

Definition at line 71 of file testProjection.cpp.

◆ Point

Definition at line 73 of file testProjection.cpp.

◆ SCell

Definition at line 72 of file testProjection.cpp.

Constructor & Destructor Documentation

◆ AngleLessCell()

AngleLessCell::AngleLessCell ( const KSpace & kspace,
const double h )
inline

Definition at line 75 of file testProjection.cpp.

75 : _kspace(kspace), _h(h)
76 {
77 }
const KSpace & _kspace
const double _h

References _h, and _kspace.

Member Function Documentation

◆ operator()()

bool AngleLessCell::operator() ( const SCell & a,
const SCell & b ) const
inline

Definition at line 79 of file testProjection.cpp.

80 {
81 return angle(_kspace, a, _h) < angle(_kspace, b, _h);
82 }
double angle(const DGtal::Z2i::RealPoint &point)

References _h, _kspace, and angle().

Field Documentation

◆ _h

const double AngleLessCell::_h

Definition at line 85 of file testProjection.cpp.

Referenced by AngleLessCell(), and operator()().

◆ _kspace

const KSpace& AngleLessCell::_kspace

Definition at line 84 of file testProjection.cpp.

Referenced by AngleLessCell(), and operator()().


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