implement common definitions: msbGrid::Color, msbGrid::Constants...etc More...
#include <iostream>#include <cmath>#include <limits>#include <cstdlib>#include <vector>Go to the source code of this file.
Classes | |
| struct | msbGrid::Marker |
Namespaces | |
| namespace | msbGrid |
| namespace | msbGrid::Constants |
Typedefs | |
| typedef double | msbGrid::Scalar |
Enumerations | |
| enum | { msbGrid::dim = 2 } |
| enum | msbGrid::Color { msbGrid::Black, msbGrid::Blue, msbGrid::Green, msbGrid::Red, msbGrid::Cyan, msbGrid::Magenta, msbGrid::Yellow, msbGrid::White } |
Functions | |
| std::string | msbGrid::colorName (const Color &color) |
| std::string | msbGrid::colorSymbol (const Color &color) |
| const Color | msbGrid::randomColor () |
| const Scalar | msbGrid::randomAngle () |
| const Scalar | msbGrid::deg2Rad (const Scalar &_angle) |
| void | msbGrid::periodicDistribution (std::vector< std::pair< Scalar, Scalar > > *blockCenter, const Scalar &xMin, const Scalar &xMax, const Scalar &yMin, const Scalar &yMax, const Scalar &dx, const Scalar &dy, const bool &verbose=true) |
Variables | |
| const Scalar | msbGrid::Constants::PI = 4.0 * std :: atan(1.0) |
| const Scalar | msbGrid::Constants::_PI = 180.0 |
| const Scalar | msbGrid::Constants::EPSILON = std :: numeric_limits< Scalar > :: epsilon() |
| const Scalar | msbGrid::Constants::TOLERANCE = 1e2 * EPSILON |
implement common definitions: msbGrid::Color, msbGrid::Constants...etc
Definition in file common.hh.