2 #ifndef vgl_io_plane_3d_hxx_ 3 #define vgl_io_plane_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_plane_3d<T>&)\n" 47 <<
" Unknown version number "<<
v <<
'\n';
48 is.is().clear(std::ios::badbit);
59 os<<
'('<<p.
a()<<
','<<p.
b()<<
','<<p.
c()<<
','<<p.
d()<<
')';
62 #define VGL_IO_PLANE_3D_INSTANTIATE(T) \ 63 template void vsl_print_summary(std::ostream &, const vgl_plane_3d<T > &); \ 64 template void vsl_b_read(vsl_b_istream &, vgl_plane_3d<T > &); \ 65 template void vsl_b_write(vsl_b_ostream &, const vgl_plane_3d<T > &) 67 #endif // vgl_io_plane_3d_hxx_ T a() const
Return x coefficient.
void vsl_print_summary(std::ostream &os, const vgl_plane_3d< T > &p)
Output a human readable summary to the stream.
void vsl_b_write(vsl_b_ostream &os, const vgl_plane_3d< T > &p)
Binary save self to stream.
void vsl_b_read(vsl_b_istream &is, vgl_plane_3d< T > &p)
Binary load self from stream.
T b() const
Return y coefficient.
Represents a Euclidean 3D plane.
T d() const
Return constant coefficient.
void set(T ta, T tb, T tc, T td)
Set this vgl_plane_3d to have the equation $ax+by+cz+d=0$.
a plane in 3D nonhomogeneous space
T c() const
Return z coefficient.