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