Functions
random_pert.hpp File Reference

Adds a random perturbation to the position of all mesh generating points. More...

#include <vector>
#include "../../tessellation/geometry.hpp"
Include dependency graph for random_pert.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

vector< Vector2Dadd_random_pert (vector< Vector2D > const &original, double amp_x, double amp_y)
 Adds a random perturbation to the position of mesh generating points. More...
 

Detailed Description

Adds a random perturbation to the position of all mesh generating points.

Author
Almog Yalinewich
Deprecated:
Replace with methods in mesh_generator.hpp file

Definition in file random_pert.hpp.

Function Documentation

◆ add_random_pert()

vector<Vector2D> add_random_pert ( vector< Vector2D > const &  original,
double  amp_x,
double  amp_y 
)

Adds a random perturbation to the position of mesh generating points.

Parameters
originalUnperturbed mesh generating points
amp_xAmplitude in the x direction
amp_yAmplitude in the y direction
Returns
Perturbed positions of the mesh generating points

Definition at line 4 of file random_pert.cpp.