2 #ifndef vgl_io_homg_point_2d_hxx_ 3 #define vgl_io_homg_point_2d_hxx_ 10 #include <vsl/vsl_binary_io.h> 17 constexpr
short io_version_no = 1;
44 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_homg_point_2d<T>&)\n" 45 <<
" Unknown version number "<<
v <<
'\n';
46 is.is().clear(std::ios::badbit);
57 os<<
'('<<p.
x()<<
','<<p.
y()<<
','<<p.
w()<<
')';
60 #define VGL_IO_HOMG_POINT_2D_INSTANTIATE(T) \ 61 template void vsl_print_summary(std::ostream &, const vgl_homg_point_2d<T > &); \ 62 template void vsl_b_read(vsl_b_istream &, vgl_homg_point_2d<T > &); \ 63 template void vsl_b_write(vsl_b_ostream &, const vgl_homg_point_2d<T > &) 65 #endif // vgl_io_homg_point_2d_hxx_ void vsl_print_summary(std::ostream &os, const vgl_homg_point_2d< T > &p)
Output a human readable summary to the stream.
point in projective 2D space
void set(T px, T py, T pw=(T) 1)
Set x,y,w.
void vsl_b_write(vsl_b_ostream &os, const vgl_homg_point_2d< T > &p)
Binary save self to stream.
Represents a homogeneous 2D point.
void vsl_b_read(vsl_b_istream &is, vgl_homg_point_2d< T > &p)
Binary load self from stream.