INET Framework for OMNeT++/OMNEST
Point.h File Reference

Classes

struct  inet::math::internal::bits_to_indices_sequence< DIMS, SIZE >
 
struct  inet::math::internal::bits_to_indices_sequence< 0b0, 0 >
 
struct  inet::math::internal::bits_to_indices_sequence< 0b0, 1 >
 
struct  inet::math::internal::bits_to_indices_sequence< 0b00, 2 >
 
struct  inet::math::internal::bits_to_indices_sequence< 0b01, 2 >
 
struct  inet::math::internal::bits_to_indices_sequence< 0b10, 2 >
 
struct  inet::math::internal::bits_to_indices_sequence< 0b00011, 5 >
 
struct  inet::math::internal::bits_to_indices_sequence< 0b11000, 5 >
 
struct  inet::math::internal::bits_to_indices_sequence< 0b11110, 5 >
 
class  inet::math::Point< T >
 N-dimensional point. More...
 

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::math
 Support functions for mathematical operations.
 
 inet::math::internal
 

Typedefs

template<int DIMS, int SIZE>
using inet::math::internal::make_bits_to_indices_sequence = typename bits_to_indices_sequence< DIMS, SIZE >::type
 

Functions

template<typename T >
void inet::math::printUnit (std::ostream &os, T v)
 
template<>
void inet::math::printUnit (std::ostream &os, double v)
 
template<>
void inet::math::printUnit (std::ostream &os, simtime_t v)
 
template<>
void inet::math::printUnit (std::ostream &os, Quaternion v)
 
template<typename T >
double inet::math::toDouble (const T v)
 
template<>
double inet::math::toDouble (const simsec v)
 
template<>
double inet::math::toDouble (const double v)
 
template<>
double inet::math::toDouble (const simtime_t v)
 
template<typename T >
inet::math::getLowerBound ()
 
template<>
simsec inet::math::getLowerBound ()
 
template<typename T >
inet::math::getUpperBound ()
 
template<>
simsec inet::math::getUpperBound ()
 
template<typename S , size_t ... SIS, typename D , size_t ... DIS>
void inet::math::internal::copyTupleElements (const S &source, std::integer_sequence< size_t, SIS ... >, D &destination, std::integer_sequence< size_t, DIS ... >)
 
template<std::size_t ... NS, typename T , typename... TS>
Point< TS ... > inet::math::internal::tailImpl (std::index_sequence< NS ... >, const Point< T, TS ... > &p)
 
template<typename... TS1, size_t ... IS1, typename... TS2, size_t ... IS2>
Point< TS1 ..., TS2 ... > inet::math::internal::concatImpl (const Point< TS1 ... > &p1, std::integer_sequence< size_t, IS1 ... >, const Point< TS2 ... > &p2, std::integer_sequence< size_t, IS2 ... >)
 
template<typename... T, size_t ... IS>
std::ostream & inet::math::internal::print (std::ostream &os, const Point< T ... > &p, std::integer_sequence< size_t, IS... >)
 
template<typename T , typename... TS>
inet::math::head (const Point< T, TS ... > &p)
 Returns the first coordinate of p. More...
 
template<typename T , typename... TS>
Point< TS ... > inet::math::tail (const Point< T, TS ... > &p)
 Returns all but the first coordinate of p. More...
 
template<typename... TS1, typename... TS2>
Point< TS1 ..., TS2 ... > inet::math::concat (const Point< TS1 ... > &p1, const Point< TS2 ... > &p2)
 Returns a point by concatenating the coordinates of p1 and p2. More...
 
template<typename T0 >
std::ostream & inet::math::operator<< (std::ostream &os, const Point< T0 > &p)
 
template<typename... T>
std::ostream & inet::math::operator<< (std::ostream &os, const Point< T ... > &p)