Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
linearsegment.hh File Reference
#include <cmath>
#include <ostream>
#include <type_traits>
#include <boost/operators.hpp>
#include <scroom/rounding.hh>
Include dependency graph for linearsegment.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Scroom::Utils::Segment< T >
 

Namespaces

namespace  Scroom
 
namespace  Scroom::Utils
 

Functions

template<typename T >
bool Scroom::Utils::isZero (T v)
 
template<>
bool Scroom::Utils::isZero< int > (int v)
 
template<>
bool Scroom::Utils::isZero< double > (double v)
 
template<typename T >
bool Scroom::Utils::areEqual (T a, T b)
 
template<typename T >
Segment< T > Scroom::Utils::make_segment (T start, T size)
 
template<typename T >
Segment< T > Scroom::Utils::make_segment_from_start_end (T start, T end)
 
template<typename T >
std::ostream & Scroom::Utils::operator<< (std::ostream &os, const Segment< T > &s)
 
Segment< double > Scroom::Utils::roundOutward (Segment< double > s)
 
template<typename T >
Scroom::Utils::center (Segment< T > s)
 

Variables

constexpr double Scroom::Utils::epsilon = 1e-6