2 #ifndef vgl_io_line_segment_2d_hxx_ 3 #define vgl_io_line_segment_2d_hxx_ 16 constexpr
short io_version_no = 1;
42 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_line_segment_2d<T>&)\n" 43 <<
" Unknown version number "<<
v <<
'\n';
44 is.is().clear(std::ios::badbit);
61 #define VGL_IO_LINE_SEGMENT_2D_INSTANTIATE(T) \ 62 template void vsl_print_summary(std::ostream &, vgl_line_segment_2d<T >const&); \ 63 template void vsl_b_read(vsl_b_istream &, vgl_line_segment_2d<T > &); \ 64 template void vsl_b_write(vsl_b_ostream &, const vgl_line_segment_2d<T > &) 66 #endif // vgl_io_line_segment_2d_hxx_
vgl_point_2d< Type > point2() const
The other end-point of the line segment.
void vsl_print_summary(std::ostream &os, const vgl_line_segment_2d< T > &l)
Output a human readable summary to the stream.
void vsl_b_read(vsl_b_istream &is, vgl_line_segment_2d< T > &p)
Binary load self from stream.
void vsl_b_write(vsl_b_ostream &os, const vgl_line_segment_2d< T > &p)
Binary save self to stream.
void set(vgl_point_2d< Type > const &p1, vgl_point_2d< Type > const &p2)
Assignment.
vgl_point_2d< Type > point1() const
One end-point of the line segment.