v0.13.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CoordsAndHandle Struct Reference

Public Member Functions

 CoordsAndHandle (const double *coords, EntityHandle v)
 

Static Public Member Functions

static double getArg (double x)
 

Public Attributes

int x
 
int y
 
int z
 
EntityHandle node
 

Detailed Description

Examples
prism_elements_from_surface.cpp.

Definition at line 37 of file prism_elements_from_surface.cpp.

Constructor & Destructor Documentation

◆ CoordsAndHandle()

CoordsAndHandle::CoordsAndHandle ( const double coords,
EntityHandle  v 
)
Examples
prism_elements_from_surface.cpp.

Definition at line 45 of file prism_elements_from_surface.cpp.

46 : x(getArg(coords[0])), y(getArg(coords[1])), z(getArg(coords[2])),
47 node(v) {}
double v
phase velocity of light in medium (cm/ns)
static double getArg(double x)

Member Function Documentation

◆ getArg()

static double CoordsAndHandle::getArg ( double  x)
static
Examples
prism_elements_from_surface.cpp.

Definition at line 39 of file prism_elements_from_surface.cpp.

39 {
40 return std::round(x * pow(10., precision_exponent - 1));
41 };
static constexpr int precision_exponent

Member Data Documentation

◆ node

EntityHandle CoordsAndHandle::node

◆ x

int CoordsAndHandle::x

◆ y

int CoordsAndHandle::y

◆ z

int CoordsAndHandle::z

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