DGtal 2.1.0
Loading...
Searching...
No Matches
Point3D Struct Reference

Public Types

using Component = double
 

Public Member Functions

const Componentoperator[] (unsigned int i) const
 
Componentoperator[] (unsigned int i)
 

Data Fields

Component x
 
Component y
 
Component z
 

Static Public Attributes

static const unsigned int dimension = 3
 

Detailed Description

Definition at line 46 of file testMeshReader.cpp.

Member Typedef Documentation

◆ Component

using Point3D::Component = double

Definition at line 47 of file testMeshReader.cpp.

Member Function Documentation

◆ operator[]() [1/2]

Component & Point3D::operator[] ( unsigned int  i)
inline

Definition at line 60 of file testMeshReader.cpp.

60 {
61 assert(i<3);
62 switch (i){
63 case 0: {return x;}
64 case 1: {return y;}
65 case 2: {return z;}
66 }
67 return x;
68 };
Component y
Component z
Component x

References x, y, and z.

◆ operator[]() [2/2]

const Component & Point3D::operator[] ( unsigned int  i) const
inline

Definition at line 50 of file testMeshReader.cpp.

50 {
51 assert(i<3);
52 switch (i){
53 case 0: {return x;}
54 case 1: {return y;}
55 case 2: {return z;}
56 }
57 return x;
58 };

References x, y, and z.

Field Documentation

◆ dimension

const unsigned int Point3D::dimension = 3
static

Definition at line 49 of file testMeshReader.cpp.

◆ x

Component Point3D::x

Definition at line 70 of file testMeshReader.cpp.

Referenced by operator[](), and operator[]().

◆ y

Component Point3D::y

Definition at line 70 of file testMeshReader.cpp.

Referenced by operator[](), and operator[]().

◆ z

Component Point3D::z

Definition at line 70 of file testMeshReader.cpp.

Referenced by operator[](), and operator[]().


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