2 #ifndef vgl_io_homg_line_3d_2_points_hxx_ 3 #define vgl_io_homg_line_3d_2_points_hxx_ 13 #include <vsl/vsl_binary_io.h> 20 constexpr
short io_version_no = 1;
46 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_homg_line_3d_2_points<T>&)\n" 47 <<
" Unknown version number "<<
v <<
'\n';
48 is.is().clear(std::ios::badbit);
64 #define VGL_IO_HOMG_LINE_3D_2_POINTS_INSTANTIATE(T) \ 65 template void vsl_print_summary(std::ostream &, \ 66 const vgl_homg_line_3d_2_points<T > &); \ 67 template void vsl_b_read(vsl_b_istream &, vgl_homg_line_3d_2_points<T > &); \ 68 template void vsl_b_write(vsl_b_ostream &, vgl_homg_line_3d_2_points<T >const&) 70 #endif // vgl_io_homg_line_3d_2_points_hxx_ void vsl_print_summary(std::ostream &os, const vgl_homg_line_3d_2_points< T > &p)
Output a human readable summary to the stream.
Represents a homogeneous 3D point.
void vsl_b_write(vsl_b_ostream &os, const vgl_homg_line_3d_2_points< T > &p)
Binary save self to stream.
void vsl_b_read(vsl_b_istream &is, vgl_homg_line_3d_2_points< T > &p)
Binary load self from stream.
vgl_homg_point_3d< Type > point_finite() const
Finite point (Could be an ideal point, if the whole line is at infinity.).
void set(vgl_homg_point_3d< Type > const &p1, vgl_homg_point_3d< Type > const &p2)
Assignment.
vgl_homg_point_3d< Type > point_infinite() const
Infinite point: the intersection of the line with the plane at infinity.
Represents a homogeneous 3D line using two points.