DGtalTools  1.5.beta
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

◆ Point

Definition at line 64 of file shape.h.

◆ RealPoint

Definition at line 65 of file shape.h.

Constructor & Destructor Documentation

◆ SphereShape()

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

Definition at line 67 of file shape.h.

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

Member Function Documentation

◆ operator()()

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

Definition at line 71 of file shape.h.

72  {
73  return (point-center).norm() <= radius;
74  }

References center, and radius.

Field Documentation

◆ center

RealPoint SphereShape::center

Definition at line 77 of file shape.h.

Referenced by operator()().

◆ radius

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: