Point.h File Reference
#include <common/math/Vector.h>#include <ostream>#include <limits>#include "common/math/Point.inl"Go to the source code of this file.
Classes | |
| class | Point< N, T > |
| A Point is templated to store N elements of data of type T. If left off, T will default to a "real_t" data type. More... | |
Defines | |
| #define | POINT_NO_ELEMENTS (N) |
| #define | POINT_SIZE (sizeof(T) * POINT_NO_ELEMENTS) |
Typedefs | |
| typedef Point< 4 > | Point3 |
| Homogeneous point in 3-space (contains a 4th "w" coordinate). | |
| typedef Point< 3 > | Point2 |
| Homogeneous point in 2-space (contains a 3rd "w" coordinate). | |
Functions | |
Extra operators where Point is on right-hand side | |
| template<unsigned N, typename T> | |
| Point< N, T > | operator* (const T &scale, const Point< N, T > &rhs) |
| template<unsigned N, typename T> | |
| Point< N, T > | operator- (const Point< N, T > &rhs) |
| template<unsigned N, typename T> | |
| std::ostream & | operator<< (std::ostream &os, const Point< N, T > &v) |
| Prints a Point to an output stream. | |
Routines with point-specific functionality | |
| void | homogenize (Point3 &p) |
| Homogenizes the point passed in such that the 4th value ("w") is one. | |
Define Documentation
Typedef Documentation
Function Documentation
| void homogenize | ( | Point3 & | p | ) |
Homogenizes the point passed in such that the 4th value ("w") is one.
template<unsigned N, typename T>
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Point< N, T > & | v | |||
| ) | [inline] |
Generated on 28 Feb 2009 for Milton by
1.5.6