DGtal 2.0.0
Loading...
Searching...
No Matches
DGtal::ImplicitDigitalEllipse3< TPoint3 > Struct Template Reference

Public Types

typedef TPoint3 Point
typedef TPoint3 Point

Public Member Functions

 ImplicitDigitalEllipse3 (double a, double b, double c)
bool operator() (const TPoint3 &p) const
 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 DGtal::ImplicitDigitalEllipse3< TPoint3 >

Definition at line 82 of file testImplicitDigitalSurface-benchmark.cpp.

Member Typedef Documentation

◆ Point [1/2]

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

Definition at line 83 of file testImplicitDigitalSurface-benchmark.cpp.

◆ Point [2/2]

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

Constructor & Destructor Documentation

◆ ImplicitDigitalEllipse3() [1/2]

◆ ImplicitDigitalEllipse3() [2/2]

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

Definition at line 84 of file testLightImplicitDigitalSurface-benchmark.cpp.

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

References myA, myB, and myC.

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 89 of file testImplicitDigitalSurface-benchmark.cpp.

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

References myA, myB, and myC.

◆ operator()() [2/2]

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

Definition at line 88 of file testLightImplicitDigitalSurface-benchmark.cpp.

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

References myA, myB, and myC.

Field Documentation

◆ myA

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

Definition at line 96 of file testImplicitDigitalSurface-benchmark.cpp.

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

◆ myB

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

Definition at line 96 of file testImplicitDigitalSurface-benchmark.cpp.

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

◆ myC

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

Definition at line 96 of file testImplicitDigitalSurface-benchmark.cpp.

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


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