2 #ifndef vgl_conic_segment_2d_hxx_ 3 #define vgl_conic_segment_2d_hxx_ 8 # include <vcl_msvc_warnings.h> 15 return s <<
"<vgl_conic_segment_2d " << p.
point1() <<
" to " << p.
point2() <<
"with " << p.
conic()
16 << (p.
is_clockwise() ?
", clockwise" :
", counterclockwise") <<
" >";
26 p.
set(p1, p2, conic,
true);
30 #undef VGL_CONIC_SEGMENT_2D_INSTANTIATE 31 #define VGL_CONIC_SEGMENT_2D_INSTANTIATE(Type) \ 32 template class vgl_conic_segment_2d<Type >;\ 33 template std::istream& operator>>(std::istream&, vgl_conic_segment_2d<Type >&);\ 34 template std::ostream& operator<<(std::ostream&, vgl_conic_segment_2d<Type > const&) 36 #endif // vgl_conic_segment_2d_hxx_ vgl_homg_point_2d< Type > point2() const
The second end-point of the conic segment.
vgl_homg_point_2d< Type > point1() const
The first end-point of the conic segment.
vgl_conic< Type > conic() const
The conic underlying the segment.
bool is_clockwise() const
The direction of the segment (clockwise or counterclockwise).
std::ostream & operator<<(std::ostream &s, vgl_orient_box_3d< Type > const &p)
Write box to stream.
Represents a 2D conic segment using two points.
void set(vgl_homg_point_2d< Type > const &p1, vgl_homg_point_2d< Type > const &p2, vgl_conic< Type > co, bool counterclockwise=true)
(Re)initialise the conic segment by passing it its three "constructors".
std::istream & operator>>(std::istream &is, vgl_orient_box_3d< Type > &p)
Read box from stream.
Represents a cartesian 2D point.
A curve segment with the geometry of a conic.