Classes | Macros | Functions
vgl_conic.h File Reference

A quadratic plane curve. More...

#include <list>
#include <string>
#include <iosfwd>
#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...
 

Macros

#define VGL_CONIC_INSTANTIATE(T)   extern "please include vgl/vgl_conic.hxx first"
 

Functions

template<class T >
std::ostream & operator<< (std::ostream &s, vgl_conic< T > const &c)
 Write "<vgl_conic aX^2+bXY+cY^2+dXW+eYW+fW^2>" to stream. More...
 
template<class T >
std::istream & operator>> (std::istream &s, vgl_conic< T > &c)
 Read a b c d e f from stream. More...
 

Detailed Description

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);
std::cout << c.real_type() << '\n'; // prints "real ellipse"
std::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.

Macro Definition Documentation

◆ VGL_CONIC_INSTANTIATE

#define VGL_CONIC_INSTANTIATE (   T)    extern "please include vgl/vgl_conic.hxx first"

Definition at line 288 of file vgl_conic.h.

Function Documentation

◆ operator<<()

template<class T >
std::ostream & operator<< ( std::ostream &  s,
vgl_conic< T > const &  co 
)

Write "<vgl_conic aX^2+bXY+cY^2+dXW+eYW+fW^2>" to stream.

Write "<vgl_conic aX^2+bXY+cY^2+dXW+eYW+fW^2>" to stream.

Definition at line 390 of file vgl_conic.hxx.

◆ operator>>()

template<class T >
std::istream & operator>> ( std::istream &  s,
vgl_conic< T > &  c 
)

Read a b c d e f from stream.

Definition at line 421 of file vgl_conic.hxx.