DHART
|
A simple wrapper for real3 that is able to determine whether or not it's defined. More...
#include <graph_generator.h>
Public Member Functions | |
optional_real3 () | |
Construct an invalid optional_real3. More... | |
optional_real3 (real_t x, real_t y, real_t z) | |
Construct an valid optreal3 from x,y,z parameters. More... | |
optional_real3 (const real3 &in_real3) | |
Construct an optreal3 from x,y,z parameters. More... | |
real3 & | operator* () |
Get a reference to the point held by this optional_real3. More... | |
operator bool () const | |
Check if this optional_real_3 has a value. More... | |
Public Attributes | |
real3 | pt { NAN, NAN, NAN } |
Point type. More... | |
A simple wrapper for real3 that is able to determine whether or not it's defined.
Upon construction, an optional_real_3 is put into 2 states, valid or invalid. Constructing this with the empty constructor will create an invalid optional_real3, using the x,y,z parameters will create a valid optional_real3. This can be checked by checking the truth the object similar to std::optional (i.e. if(optional_real3) ).
Definition at line 281 of file graph_generator.h.
|
inline |
Construct an invalid optional_real3.
Definition at line 285 of file graph_generator.h.
Construct an valid optreal3 from x,y,z parameters.
x | X Coordinate |
y | Y Coordinate |
z | Z Coordinate |
Definition at line 293 of file graph_generator.h.
|
inline |
Construct an optreal3 from x,y,z parameters.
in_real3 | Input x,y,z coordinates in a real3 |
Definition at line 299 of file graph_generator.h.
|
inlineexplicit |
Check if this optional_real_3 has a value.
Definition at line 312 of file graph_generator.h.
References pt.
|
inline |
Get a reference to the point held by this optional_real3.
Definition at line 305 of file graph_generator.h.
References pt.
real3 HF::GraphGenerator::optional_real3::pt { NAN, NAN, NAN } |
Point type.
Definition at line 282 of file graph_generator.h.
Referenced by HF::GraphGenerator::CheckChildren(), HF::GraphGenerator::CheckRay(), operator bool(), and operator*().