Main MRPT website > C++ reference for MRPT 1.5.7
base/src/utils/types.cpp
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 
10 #include "base-precomp.h" // Precompiled headers
11 
12 
13 #include <mrpt/utils/types.h>
14 #include <mrpt/utils/TPixelCoord.h>
15 
16 using namespace mrpt::utils;
17 using namespace std;
18 
19 
20 /*---------------------------------------------------------------
21  << for TPixelCoordf
22  ---------------------------------------------------------------*/
23 std::ostream& mrpt::utils::operator <<(std::ostream& o, const TPixelCoordf& p)
24 {
25  o << "(" << p.x << "," << p.y << ")";
26  return o;
27 }
28 
29 /*---------------------------------------------------------------
30  << for TPixelCoord
31  ---------------------------------------------------------------*/
32 std::ostream& mrpt::utils::operator <<(std::ostream& o, const TPixelCoord& p)
33 {
34  o << "(" << p.x << "," << p.y << ")";
35  return o;
36 }
A pair (x,y) of pixel coordinates (subpixel resolution).
Definition: TPixelCoord.h:21
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
Definition: zip.h:16
A pair (x,y) of pixel coordinates (integer resolution).
Definition: TPixelCoord.h:37
STL namespace.
CStream BASE_IMPEXP & operator<<(mrpt::utils::CStream &s, const char *a)
Definition: CStream.cpp:130
GLfloat GLfloat p
Definition: glext.h:5587



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019