DGtalTools  0.9.4
Public Types | Public Member Functions | Data Fields
SphereShape Struct Reference

#include <estimators/volSurfaceRegularization-details/shape.h>

Collaboration diagram for SphereShape:
Collaboration graph
[legend]

Public Types

typedef DGtal::Z3i::Point Point
 
typedef DGtal::Z3i::RealPoint RealPoint
 

Public Member Functions

 SphereShape (const double &radius_, const RealPoint &center_)
 
bool operator() (const Point &point) const
 

Data Fields

double radius
 
RealPoint center
 

Detailed Description

Definition at line 62 of file shape.h.

Member Typedef Documentation

Definition at line 64 of file shape.h.

Definition at line 65 of file shape.h.

Constructor & Destructor Documentation

SphereShape::SphereShape ( const double &  radius_,
const RealPoint center_ 
)
inline

Definition at line 67 of file shape.h.

67  : radius(radius_), center(center_)
68  {
69  }
double radius
Definition: shape.h:76
RealPoint center
Definition: shape.h:77

Member Function Documentation

bool SphereShape::operator() ( const Point point) const
inline

Definition at line 71 of file shape.h.

References center, and radius.

72  {
73  return (point-center).norm() <= radius;
74  }
double radius
Definition: shape.h:76
RealPoint center
Definition: shape.h:77

Field Documentation

RealPoint SphereShape::center

Definition at line 77 of file shape.h.

Referenced by operator()().

double SphereShape::radius

Definition at line 76 of file shape.h.

Referenced by operator()().


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