A quadratic plane curve. More...
#include <vcl_list.h>
#include <vcl_string.h>
#include <vcl_iosfwd.h>
#include <vgl/vgl_homg_point_2d.h>
#include <vgl/vgl_homg_line_2d.h>
Go to the source code of this file.
Classes | |
class | vgl_conic< T > |
A quadratic plane curve. More... | |
Defines | |
#define | VGL_CONIC_INSTANTIATE(T) extern "please include vgl/vgl_conic.txx first" |
Functions | |
template<class T > | |
vcl_ostream & | operator<< (vcl_ostream &s, vgl_conic< T > const &c) |
Write "<vgl_conic aX^2+bXY+cY^2+dXW+eYW+fW^2>" to stream. | |
template<class T > | |
vcl_istream & | operator>> (vcl_istream &s, vgl_conic< T > &c) |
Read a b c d e f from stream. |
A quadratic plane curve.
This example tells you the type of the given conic equation, and prints the equation in readable form:
vgl_conic<double> c(1, 0, 2, 0, 0, -3); vcl_cout << c.real_type() << '\n'; // prints "real ellipse" vcl_cout << c << '\n'; // prints the equation: X^2 + 2 Y^2 - 3 = 0
Modifications Peter Vanroose, 10 sep 1996 wrote description and example file. Peter Vanroose, 17 jun 1998 added PolarLine() and PolarPoint(). Peter Vanroose, 18 jun 1998 added Hyperbola and Circle interface. Peter Vanroose, 19 jun 1998 added dual space functions. Peter Vanroose, 21 jun 1998 added Parabola interface. Peter Vanroose, 27 jun 1998 added ComputeParabolaParameters(). M.Vergauwen & P.Vanroose, 4 jul 1998 added Intersect() & CommonTangents() Peter Vanroose, 29 aug 2001 ported from Geometry to vgl Peter Vanroose, 30 aug 2001 complete rewrite of most of the code Peter Vanroose, 31 aug 2001 added extensive testing + fixed some bugs Feb.2002 - Peter Vanroose - brief doxygen comment placed on single line Ricardo Fabbri, 08 nov 2008 added curvature_at() method.
Definition in file vgl_conic.h.
#define VGL_CONIC_INSTANTIATE | ( | T | ) | extern "please include vgl/vgl_conic.txx first" |
Definition at line 285 of file vgl_conic.h.
vcl_ostream & operator<< | ( | vcl_ostream & | s, |
vgl_conic< T > const & | co | ||
) |
Write "<vgl_conic aX^2+bXY+cY^2+dXW+eYW+fW^2>" to stream.
Definition at line 389 of file vgl_conic.txx.
vcl_istream & operator>> | ( | vcl_istream & | s, |
vgl_conic< T > & | c | ||
) |
Read a b c d e f from stream.
Definition at line 420 of file vgl_conic.txx.