Main MRPT website > C++ reference for MRPT 1.5.6
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
A pair (x,y) of pixel coordinates (integer resolution).
Definition: TPixelCoord.h:37
GLfloat GLfloat p
Definition: glew.h:10113
CStream BASE_IMPEXP & operator<<(mrpt::utils::CStream &s, const char *a)
Definition: CStream.cpp:130



Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018