DelaunayTriangulation
A C++ Object Oriented data structure with algorithms that could be used to generate a Delaunay triangulation
Namespaces | Functions
utils.hpp File Reference

Utils namespace header. More...

#include <string>
#include <stdexcept>
#include "Triangle.hpp"
Include dependency graph for utils.hpp:

Go to the source code of this file.

Namespaces

namespace  Utils
 Namespace of utility functions.
 

Functions

int Utils::lineLength (const std::string &line)
 Find number of parameters in file import lines. More...
 
template<typename Stream >
void Utils::loadFile (Stream &gStream, const std::string &fileName)
 Opens a stream with the specified file and verifies it has been opened correctly. More...
 
template<typename T >
double Utils::constantValueApprox (T func, const Triangle &triangle)
 Approximates integral of func over triangle using constant value approximation. More...
 
template<typename T >
double Utils::linearInterpolationApprox (T func, const Triangle &triangle)
 Approximates integral of func over triangle using linear interpolation approximation. More...
 

Detailed Description

Utils namespace header.