Belle II Software development
|
Small helper for checking the same sign of two, four or eight floats. More...
#include <SameSignChecker.h>
Static Public Member Functions | |
static bool | sameSign (double n1, double n2) |
Check if two values have the same sign. | |
static bool | sameSign (double n1, double n2, double n3, double n4) |
Check if four values have the same sign. | |
static bool | sameSign (double n1, double n2, double n3, double n4, double n5, double n6, double n7, double n8) |
Check if eight values have the same sign. | |
static bool | isIn (double x, double y, double x1, double x2, double y1, double y2) |
Check if two values are in the rectangle spanned by the other four values. | |
Small helper for checking the same sign of two, four or eight floats.
Definition at line 20 of file SameSignChecker.h.
|
inlinestatic |
Check if two values are in the rectangle spanned by the other four values.
Definition at line 48 of file SameSignChecker.h.
|
inlinestatic |
Check if two values have the same sign.
Definition at line 24 of file SameSignChecker.h.
|
inlinestatic |
Check if four values have the same sign.
Definition at line 30 of file SameSignChecker.h.
|
inlinestatic |
Check if eight values have the same sign.
Definition at line 37 of file SameSignChecker.h.