DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Data Fields
ImplicitDigitalEllipse3< TPoint3 > Struct Template Reference

Public Types

typedef TPoint3 Point

Public Member Functions

 ImplicitDigitalEllipse3 (double a, double b, double c)
bool operator() (const TPoint3 &p) const

Data Fields

double myA
double myB
double myC

Detailed Description

template<typename TPoint3>
struct ImplicitDigitalEllipse3< TPoint3 >

Definition at line 117 of file testDigitalSurface.cpp.


Member Typedef Documentation

template<typename TPoint3 >
typedef TPoint3 ImplicitDigitalEllipse3< TPoint3 >::Point

Definition at line 118 of file testDigitalSurface.cpp.


Constructor & Destructor Documentation

template<typename TPoint3 >
ImplicitDigitalEllipse3< TPoint3 >::ImplicitDigitalEllipse3 ( double  a,
double  b,
double  c 
)
inline

Definition at line 120 of file testDigitalSurface.cpp.

: myA( a ), myB( b ), myC( c )
{}

Member Function Documentation

template<typename TPoint3 >
bool ImplicitDigitalEllipse3< TPoint3 >::operator() ( const TPoint3 &  p) const
inline

Definition at line 124 of file testDigitalSurface.cpp.

{
double x = ( (double) p[ 0 ] / myA );
double y = ( (double) p[ 1 ] / myB );
double z = ( (double) p[ 2 ] / myC );
return ( x*x + y*y + z*z ) <= 1.0;
}

Field Documentation

template<typename TPoint3 >
double ImplicitDigitalEllipse3< TPoint3 >::myA

Definition at line 131 of file testDigitalSurface.cpp.

template<typename TPoint3 >
double ImplicitDigitalEllipse3< TPoint3 >::myB

Definition at line 131 of file testDigitalSurface.cpp.

template<typename TPoint3 >
double ImplicitDigitalEllipse3< TPoint3 >::myC

Definition at line 131 of file testDigitalSurface.cpp.


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