Public Types | Static Public Member Functions

cartesian_cs< d > Struct Template Reference

Provides the basic operations in a cartesian coordinate system. More...

#include <point.hpp>

Public Types

enum  { dim = d }

Static Public Member Functions

template<typename PointType >
static PointType add (PointType const &p1, PointType const &p2)
 Returns the point p1 + p2 for a cartesian coordinate system.
template<typename PointType >
static void inplace_add (PointType &p1, PointType const &p2)
 Implementation of p1 += p2 for a cartesian coordinate system.
template<typename PointType >
static PointType subtract (PointType const &p1, PointType const &p2)
 Returns the point p1 - p2 for a cartesian coordinate system.
template<typename PointType >
static void inplace_subtract (PointType &p1, PointType const &p2)
 Implementation of p1 -= p2 for a cartesian coordinate system.
template<typename PointType >
static PointType & inplace_stretch (PointType &p1, typename traits::value_type< PointType >::type factor)
 Implementation of p1 -= p2 for a cartesian coordinate system.

Detailed Description

template<long d>
struct viennagrid::cartesian_cs< d >

Provides the basic operations in a cartesian coordinate system.


Member Enumeration Documentation

anonymous enum
Enumerator:
dim 

Member Function Documentation

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

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

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

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

static PointType& inplace_stretch ( PointType &  p1,
typename traits::value_type< PointType >::type  factor 
) [inline, static]

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

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

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

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

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


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