Commit addbe1eb authored by Pierre NARVOR's avatar Pierre NARVOR
Browse files

[types] Added Point4<T>

parent 8f62d02f
...@@ -20,6 +20,15 @@ struct Point3 ...@@ -20,6 +20,15 @@ struct Point3
T z; T z;
}; };
template <typename T>
struct Point4
{
T x;
T y;
T z;
T w;
};
}; //namespace types }; //namespace types
}; //namespace rtac }; //namespace rtac
...@@ -37,4 +46,11 @@ std::ostream& operator<<(std::ostream& os, const rtac::types::Point3<T>& p) ...@@ -37,4 +46,11 @@ std::ostream& operator<<(std::ostream& os, const rtac::types::Point3<T>& p)
return os; 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_ #endif //_DEF_RTAC_BASE_TYPES_POINT_H_
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment