|
MLIB
|
Definition of mlib::Point template class. More...
Go to the source code of this file.
Classes | |
| struct | mlib::point_traits< T > |
| Provides default tolerance value for Point class. More... | |
| struct | mlib::point_traits< int > |
| Provide tolerance for integer points. More... | |
| class | mlib::Point< T > |
| Generic 2D point. More... | |
Typedefs | |
| typedef Point< double > | mlib::dpoint |
| Specialization of Point using double as underlining type. | |
Functions | |
| template<class T> | |
| Point< T > | mlib::operator* (double scalar, const Point< T > &p) |
| Scalar multiplication function makes scalar multiplication commutative. | |
| template<class T> | |
| double | mlib::abs (const Point< T > &p) |
| Alias for magnitude function. | |
| template<class T> | |
| std::ostream & | mlib::operator<< (std::ostream &s, const Point< T > &p) |
Definition of mlib::Point template class.
| std::ostream & mlib::operator<< | ( | std::ostream & | s, |
| const Point< T > & | p ) |
Serializes a point to an output stream as a comma-separated pair of values in brackets