2 #ifndef vgl_io_line_3d_2_points_hxx_ 3 #define vgl_io_line_3d_2_points_hxx_ 18 constexpr
short io_version_no = 1;
42 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_line_3d_2_points<T>&)\n" 43 <<
" Unknown version number "<<
v <<
'\n';
44 is.is().clear(std::ios::badbit);
60 #define VGL_IO_LINE_3D_2_POINTS_INSTANTIATE(T) \ 61 template void vsl_print_summary(std::ostream&, vgl_line_3d_2_points<T > const&);\ 62 template void vsl_b_read(vsl_b_istream&, vgl_line_3d_2_points<T > &); \ 63 template void vsl_b_write(vsl_b_ostream&, vgl_line_3d_2_points<T > const&) 65 #endif // vgl_io_line_3d_2_points_hxx_ void set(vgl_point_3d< Type > const &p1, vgl_point_3d< Type > const &p2)
Assignment.
void vsl_b_write(vsl_b_ostream &os, vgl_line_3d_2_points< T > const &p)
Binary save self to stream.
A class to hold a non-homogeneous representation of a 3D line.
vgl_point_3d< Type > point1() const
Return the first point representing this line.
void vsl_print_summary(std::ostream &os, vgl_line_3d_2_points< T > const &p)
Output a human readable summary to the stream.
vgl_point_3d< Type > point2() const
Return the second point representing this line.
void vsl_b_read(vsl_b_istream &is, vgl_line_3d_2_points< T > &p)
Binary load self from stream.