ug4
ug::Raster< T, TDIM >::Coordinate Class Reference

#include <raster.h>

Public Member Functions

 Coordinate ()
 
 Coordinate (const MathVector< TDIM, number > &v)
 
 Coordinate (number c)
 
int dim () const
 
Coordinateoperator*= (number s)
 
Coordinateoperator+= (const Coordinate &c)
 
Coordinateoperator-= (const Coordinate &c)
 
numberoperator[] (int d)
 
number operator[] (int d) const
 
void set (number c)
 

Private Attributes

number m_coord [TDIM]
 

Friends

std::ostream & operator<< (std::ostream &o, const Coordinate &coord)
 

Constructor & Destructor Documentation

◆ Coordinate() [1/3]

template<class T , int TDIM>
ug::Raster< T, TDIM >::Coordinate::Coordinate

◆ Coordinate() [2/3]

template<class T , int TDIM>
ug::Raster< T, TDIM >::Coordinate::Coordinate ( number  c)

◆ Coordinate() [3/3]

template<class T , int TDIM>
ug::Raster< T, TDIM >::Coordinate::Coordinate ( const MathVector< TDIM, number > &  v)

Member Function Documentation

◆ dim()

template<class T , int TDIM>
int ug::Raster< T, TDIM >::Coordinate::dim

◆ operator*=()

template<class T , int TDIM>
Raster< T, TDIM >::Coordinate & ug::Raster< T, TDIM >::Coordinate::operator*= ( number  s)

References s.

◆ operator+=()

template<class T , int TDIM>
Raster< T, TDIM >::Coordinate & ug::Raster< T, TDIM >::Coordinate::operator+= ( const Coordinate c)

◆ operator-=()

template<class T , int TDIM>
Raster< T, TDIM >::Coordinate & ug::Raster< T, TDIM >::Coordinate::operator-= ( const Coordinate c)

◆ operator[]() [1/2]

template<class T , int TDIM>
number & ug::Raster< T, TDIM >::Coordinate::operator[] ( int  d)

◆ operator[]() [2/2]

template<class T , int TDIM>
number ug::Raster< T, TDIM >::Coordinate::operator[] ( int  d) const

◆ set()

template<class T , int TDIM>
void ug::Raster< T, TDIM >::Coordinate::set ( number  c)

Friends And Related Function Documentation

◆ operator<<

template<class T , int TDIM>
std::ostream& operator<< ( std::ostream &  o,
const Coordinate coord 
)
friend

Member Data Documentation

◆ m_coord

template<class T , int TDIM>
number ug::Raster< T, TDIM >::Coordinate::m_coord[TDIM]
private

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