Luanti
5.10.0-dev
Loading...
Searching...
No Matches
printing.h
Go to the documentation of this file.
1
// Luanti
2
// SPDX-License-Identifier: LGPL-2.1-or-later
3
// Copyright (C) 2023 Vitaliy Lobachevskiy
4
5
#pragma once
6
#include <ostream>
7
#include <vector2d.h>
8
#include <vector3d.h>
9
10
namespace
irr::core
{
11
12
template
<
class
T>
13
std::ostream &
operator<<
(std::ostream &os, vector2d<T> vec)
14
{
15
return
os <<
"("
<< vec.X <<
","
<< vec.Y <<
")"
;
16
}
17
18
template
<
class
T>
19
std::ostream &
operator<<
(std::ostream &os, vector3d<T> vec)
20
{
21
return
os <<
"("
<< vec.X <<
","
<< vec.Y <<
","
<< vec.Z <<
")"
;
22
}
23
24
}
irr::core
Definition
printing.h:10
irr::core::operator<<
std::ostream & operator<<(std::ostream &os, vector2d< T > vec)
Definition
printing.h:13
irrlicht_changes
printing.h
Generated on Fri Nov 1 2024 10:48:59 for Luanti by
1.11.0