DelaunayTriangulation
A C++ Object Oriented data structure with algorithms that could be used to generate a Delaunay triangulation
Loading...
Searching...
No Matches
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.
 
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.
 
template<typename T>
double Utils::constantValueApprox (T func, const Triangle &triangle)
 Approximates integral of func over triangle using constant value approximation.
 
template<typename T>
double Utils::linearInterpolationApprox (T func, const Triangle &triangle)
 Approximates integral of func over triangle using linear interpolation approximation.
 

Detailed Description

Utils namespace header.