MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
coord_comp_2d_ Struct Reference

compare struct for 2D coordinates More...

#include <postprocessing.h>

Public Member Functions

MBool operator() (const std::pair< MFloat, MFloat > &left, const std::pair< MFloat, MFloat > &right) const
 

Detailed Description

Author
A. Niemoeller
Date
09.12.2013

Definition at line 43 of file postprocessing.h.

Member Function Documentation

◆ operator()()

MBool coord_comp_2d_::operator() ( const std::pair< MFloat, MFloat > &  left,
const std::pair< MFloat, MFloat > &  right 
) const
inline

Definition at line 44 of file postprocessing.h.

44 {
45 if(left.first < right.first) {
46 return true;
47 } else if(approx(left.first, right.first, 100 * MFloatEps)) {
48 if(left.second < right.second) {
49 return true;
50 } else {
51 return false;
52 }
53 } else {
54 return false;
55 }
56 }
MBool approx(const T &, const U &, const T)
Definition: functions.h:272

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