Go to the documentation of this file. 1 #ifndef EAGINE_MATH_IO_HPP
9 #define EAGINE_MATH_IO_HPP
20 template <
typename T,
int N,
bool V>
25 for(
int i = 1; i < N; ++i) {
33 template <
typename T,
int C,
int R,
bool V>
36 o <<
"|R0[" << m._v[0][0];
38 for(
int c = 1; c < C; ++c) {
39 o <<
", " << m._v[0][c];
43 for(
int r = 1; r < R; ++r) {
44 o <<
",R" << r <<
"[" << m._v[r][0];
45 for(
int c = 1; c < C; ++c) {
46 o <<
", " << m._v[r][c];
55 template <
typename T,
int C,
int R,
bool V>
59 o <<
"|C0[" << m._v[0][0];
61 for(
int r = 1; r < R; ++r) {
62 o <<
", " << m._v[0][r];
66 for(
int c = 1; c < C; ++c) {
67 o <<
",C" << c <<
"[" << m._v[c][0];
68 for(
int r = 1; r < R; ++r) {
69 o <<
", " << m._v[c][r];
78 template <
typename T,
int N,
bool V>
81 o <<
'[' << l.origin() <<
" -> " << l.direction() <<
']';
87 template <
typename T,
int N,
bool V>
90 o <<
'[' << t.a() <<
'|' << t.b() <<
'|' << t.c() <<
']';
96 template <
typename T,
bool V>
99 o <<
'[' << s.center() <<
')' << s.radius() <<
']';
105 #endif // EAGINE_MATH_IO_HPP
Basic template for spheres in N-dimensional space.
Definition: primitives.hpp:122
Basic template for lines in N-dimensional space.
Definition: primitives.hpp:19
Basic template for triangles in N-dimensional space.
Definition: primitives.hpp:57
static auto operator<<(std::ostream &o, const vector< T, N, V > &v) -> std::ostream &
Operator for writing vector into output stream.
Definition: io.hpp:21
Basic N-dimensional vector implementation template.
Definition: fwd.hpp:19
Math-related code is placed in this namespace.
Definition: eagine.hpp:48
Basic RxC matrix implementation template.
Definition: fwd.hpp:25