DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions
DGtal::detail::TangentAngleFromDSS Struct Reference

#include <SegmentComputerEstimators.h>

Public Types

typedef double Value

Public Member Functions

template<typename DSS >
Value operator() (const DSS &aDSS) const

Detailed Description

Description of class 'TangentAngleFromDSS'

Aim: computes the tangent orientation of a DSS (angle in [-pi,+pi] radians between the tangent and the x-axis).

Definition at line 685 of file SegmentComputerEstimators.h.


Member Typedef Documentation

Definition at line 688 of file SegmentComputerEstimators.h.


Member Function Documentation

template<typename DSS >
Value DGtal::detail::TangentAngleFromDSS::operator() ( const DSS &  aDSS) const
inline

Operator()

Returns:
the angle of type double (angle in [-pi,+pi] radians between the tangent and the x-axis).
Parameters:
aDSSan instance of segment computer devoted to the DSS recognition.
Template Parameters:
DSSa model of segment computer, which must have methods getA() and getB() returning the y- and x-component of the tangent vector.

Definition at line 705 of file SegmentComputerEstimators.h.

{
::castToDouble(aDSS.getA());
::castToDouble(aDSS.getB());
return std::atan2(a,b);
}

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