Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rangeutils.h File Reference
#include <algorithm>
#include "ion/math/range.h"
Include dependency graph for rangeutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::math
 

Functions

template<int Dimension, typename T >
const Range< Dimension, Tion::math::RangeUnion (const Range< Dimension, T > &r0, const Range< Dimension, T > &r1)
 Returns the union of two Range instances. More...
 
template<int Dimension, typename T >
const Range< Dimension, Tion::math::RangeIntersection (const Range< Dimension, T > &r0, const Range< Dimension, T > &r1)
 Returns the intersection of two Range instances. More...
 
template<int Dimension, typename T >
T ion::math::NVolume (const Range< Dimension, T > &r)
 Returns the NVolume of a Range, which is the product of its sizes in all dimensions. More...
 
template<int Dimension, typename T >
bool ion::math::RangesAlmostEqual (const Range< Dimension, T > &r0, const Range< Dimension, T > &r1, const T threshold)
 Returns true if all dimensions of the two ranges are equal within the threshold. More...
 
template<int Dimension, typename T >
const Range< Dimension, Tion::math::ScaleRange (const Range< Dimension, T > &r, T scale_factor)
 Returns a Range that is the input Range scaled uniformly about its center by the given factor. More...
 
template<int Dimension, typename T >
const Range< Dimension, Tion::math::ScaleRangeNonUniformly (const Range< Dimension, T > &r, const Vector< Dimension, T > scale_factors)
 Returns a Range that is the input Range scaled nonuniformly about its center by the given per-dimension factors. More...
 
template<int Dimension, typename T1 , typename T2 >
const Range< Dimension, T1 > ion::math::ModulateRange (const Range< Dimension, T1 > &r, const Vector< Dimension, T2 > modulation)
 Modulate a Range by a Vector. More...