#include <iostream.h>
#include "Geometry/point-traits.h"
#include "Geometry/coords_2_special.h"
#include "Geometry/coords_3_special.h"
#include "Geometry/algebraic-primitives.h"
Include dependency graph for coords.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Compounds | |
class | coordN |
struct | point_traits_for_coordN |
struct | point_traits_for_coordN_2 |
struct | point_traits< coordN< N > > |
struct | point_traits< coordN< 2 > > |
Typedefs | |
typedef double | coord_N_component |
A general class template for small geometric points. The only template parameter is currently the dimension N. This class could as well be parameterized over the type of the components, now fixed to double. Default template parameters offer a clean way to add this generality later without having to change code elsewhere. More... | |
Functions | |
template<unsigned N> bool | operator== (const coordN< N > &lhs, const coordN< N > rhs) |
template<unsigned N> bool | operator!= (const coordN< N > &lhs, const coordN< N > rhs) |
template<unsigned N> coordN< N > | operator+ (const coordN< N > &lhs, const coordN< N > &rhs) |
template<unsigned N> coordN< N > | operator- (const coordN< N > &lhs, const coordN< N > &rhs) |
template<unsigned N> coordN< N > | operator * (const coordN< N > &lhs, const coord_N_component &rhs) |
template<unsigned N> coordN< N > | operator * (const coord_N_component &lhs, const coordN< N > &rhs) |
template<unsigned N> coordN< N > | operator/ (const coordN< N > &lhs, const coord_N_component &rhs) |
template<unsigned N> coordN< N > | operator- (const coordN< N > &rhs) |
template<unsigned N> std::ostream & | operator<< (std::ostream &out, const coordN< N > &P) |
template<unsigned N> std::istream & | operator>> (std::istream &in, coordN< N > &P) |
|
A general class template for small geometric points. The only template parameter is currently the dimension N. This class could as well be parameterized over the type of the components, now fixed to double. Default template parameters offer a clean way to add this generality later without having to change code elsewhere. Features: 1-based indexing with [] and () all algebraic operators:
This class template can work together with the matrix<M.N> template. Definition at line 47 of file coords.h. Referenced by operator *, and operator/. |
|
|
|
|
|
|
|
|
|
Definition at line 102 of file coords.h. References coord_N_component. |
|
Definition at line 106 of file coords.h. References coord_N_component. |
|
Definition at line 110 of file coords.h. References coord_N_component. |
|
|
|
|
|
|