ViennaGrid - The Vienna Grid Library  2.1.0
Static Public Member Functions
cs_base< CSystem > Struct Template Reference

Common base for all non-cartesian coordinate systems. More...

#include <point.hpp>

Static Public Member Functions

template<typename PointType >
static PointType add (PointType const &p1, PointType const &p2)
 Returns the point p1 + p2 for a polar coordinate system.
template<typename PointType >
static void inplace_add (PointType &p1, PointType const &p2)
 Implementation of p1 += p2 for a polar coordinate system.
template<typename PointType >
static void inplace_subtract (PointType &p1, PointType const &p2)
 Implementation of p1 -= p2 for a polar coordinate system.
template<typename PointType >
static PointType subtract (PointType const &p1, PointType const &p2)
 Returns the point p1 - p2 for a polar coordinate system.

Detailed Description

template<typename CSystem>
struct viennagrid::cs_base< CSystem >

Common base for all non-cartesian coordinate systems.


Member Function Documentation

static PointType add ( PointType const &  p1,
PointType const &  p2 
) [inline, static]

Returns the point p1 + p2 for a polar coordinate system.

static void inplace_add ( PointType &  p1,
PointType const &  p2 
) [inline, static]

Implementation of p1 += p2 for a polar coordinate system.

static void inplace_subtract ( PointType &  p1,
PointType const &  p2 
) [inline, static]

Implementation of p1 -= p2 for a polar coordinate system.

static PointType subtract ( PointType const &  p1,
PointType const &  p2 
) [inline, static]

Returns the point p1 - p2 for a polar coordinate system.


The documentation for this struct was generated from the following file: