VisiLibity v1 Source Code 1.0
Static Public Member Functions | List of all members
VisiLibity::Unit_Test Class Reference

Utilities for writing VisiLibity unit tests. More...

#include <visilibity.hpp>

Inheritance diagram for VisiLibity::Unit_Test:
VisiLibity::Shortest_Path_Test

Static Public Member Functions

static void set_output_precision ()
 
static void seed_random ()
 
template<std::size_t N>
static std::vector< Pointmake_point_vector (std::array< double, N > vertices)
 

Detailed Description

Utilities for writing VisiLibity unit tests.

Remarks
Subclass for specific kinds of tests, if necessary.
Author
Will Hawkins

Member Function Documentation

◆ make_point_vector()

template<std::size_t N>
static std::vector< Point > VisiLibity::Unit_Test::make_point_vector ( std::array< double, N >  vertices)
inlinestatic

Make a vector of points from an array of doubles.

Remarks
The size of vertices must be even.
Author
Will Hawkins
Returns
A vector of Point objects whose size is half the size of vertices.

◆ seed_random()

void VisiLibity::Unit_Test::seed_random ( )
static

Seed the OS' random number generator.

Author
Will Hawkins

◆ set_output_precision()

void VisiLibity::Unit_Test::set_output_precision ( )
static

Set the precision that will be used when printing numbers to the screen through std::cout/cerr.

Author
Will Hawkins

The documentation for this class was generated from the following files: