Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre NARVOR
rtac_base
Commits
addbe1eb
Commit
addbe1eb
authored
Sep 24, 2021
by
Pierre NARVOR
Browse files
[types] Added Point4<T>
parent
8f62d02f
Changes
1
Show whitespace changes
Inline
Side-by-side
include/rtac_base/types/Point.h
View file @
addbe1eb
...
...
@@ -20,6 +20,15 @@ struct Point3
T
z
;
};
template
<
typename
T
>
struct
Point4
{
T
x
;
T
y
;
T
z
;
T
w
;
};
};
//namespace types
};
//namespace rtac
...
...
@@ -37,4 +46,11 @@ std::ostream& operator<<(std::ostream& os, const rtac::types::Point3<T>& p)
return
os
;
}
template
<
typename
T
>
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
rtac
::
types
::
Point4
<
T
>&
p
)
{
os
<<
p
.
x
<<
" "
<<
p
.
y
<<
" "
<<
p
.
z
<<
" "
<<
p
.
w
;
return
os
;
}
#endif //_DEF_RTAC_BASE_TYPES_POINT_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment