#include <point.h>
Public Types | |
| typedef VALUE | value_type |
| typedef value_type * | pointer |
| typedef const value_type * | const_pointer |
| typedef value_type * | iterator |
| typedef const value_type * | const_iterator |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
| typedef size_t | size_type |
Public Member Functions | |
| Point () | |
| Point (const Tensor< 1, DIM, VALUE > &) | |
| Point (const VALUE x) | |
| Point (const VALUE x, const VALUE y) | |
| Point (const VALUE x, const VALUE y, const VALUE z) | |
| Point< DIM, VALUE > & | operator= (const VALUE x) |
| const size_type | size () const |
| const VALUE | operator() (const size_type i) const |
| VALUE & | operator() (const size_type i) |
a class for points in the d-dimensional Euclidean space where d is a priori known
| typedef const value_type* MathTL::Point< DIM, VALUE >::const_iterator |
const iterator type (cf. STL containers)
| typedef const value_type* MathTL::Point< DIM, VALUE >::const_pointer |
const pointer type (cf. STL containers)
| typedef const value_type& MathTL::Point< DIM, VALUE >::const_reference |
const reference type (cf. STL containers)
| typedef value_type* MathTL::Point< DIM, VALUE >::iterator |
iterator type (cf. STL containers)
| typedef value_type* MathTL::Point< DIM, VALUE >::pointer |
pointer type (cf. STL containers)
| typedef value_type& MathTL::Point< DIM, VALUE >::reference |
reference type (cf. STL containers)
| typedef size_t MathTL::Point< DIM, VALUE >::size_type |
size type (cf. STL containers)
Reimplemented from MathTL::Tensor< 1, DIM, VALUE >.
| typedef VALUE MathTL::Point< DIM, VALUE >::value_type |
value type of the vector (cf. STL containers)
Reimplemented from MathTL::Tensor< 1, DIM, VALUE >.
| MathTL::Point< DIM, VALUE >::Point | ( | ) | [inline] |
default constructor: yields the origin (we always initialize the point with zero)
| MathTL::Point< DIM, VALUE >::Point | ( | const Tensor< 1, DIM, VALUE > & | T | ) | [inline] |
copy constructor from a tensor of rank 1
| MathTL::Point< DIM, VALUE >::Point | ( | const VALUE | x | ) | [inline, explicit] |
constructor from a single real number, sets all coordinates to this number
| MathTL::Point< DIM, VALUE >::Point | ( | const VALUE | x, |
| const VALUE | y | ||
| ) | [inline] |
constructor from two real numbers, this is only allowed for DIM==2
| MathTL::Point< DIM, VALUE >::Point | ( | const VALUE | x, |
| const VALUE | y, | ||
| const VALUE | z | ||
| ) | [inline] |
constructor from three real numbers, this is only allowed for DIM==3
| const VALUE MathTL::Point< DIM, VALUE >::operator() | ( | const size_type | i | ) | const [inline] |
Matlab-style read-only access operator (operator [] is inherited from the Tensor class)
| VALUE & MathTL::Point< DIM, VALUE >::operator() | ( | const size_type | i | ) | [inline] |
Matlab-style read-write access operator (operator [] is inherited from the Tensor class)
| Point< DIM, VALUE > & MathTL::Point< DIM, VALUE >::operator= | ( | const VALUE | x | ) |
set all coordinates to a real number (also for implicit conversion)
| const Point< DIM, VALUE >::size_type MathTL::Point< DIM, VALUE >::size | ( | ) | const [inline] |
assignment operator (for safety, Tensor class already has one)
size/dimension of the point (cf. std::vector signature)
Reimplemented from MathTL::Tensor< 1, DIM, VALUE >.
1.7.6.1