Overview     Modules     Class Hierarchy     Classes     Members  

tlp::Circle< Obj > Struct Template Reference
[Basic]

class for circle More...

#include <Circle.h>

Inheritance diagram for tlp::Circle< Obj >:
Collaboration diagram for tlp::Circle< Obj >:

List of all members.

Public Member Functions

Public Attributes


Detailed Description

template<typename Obj>
struct tlp::Circle< Obj >

class for circle

Enables to both create and manipulate a circle

Author:
David Auber auber@tulip-software.org
Version:
0.0.1 24/01/2003

Constructor & Destructor Documentation

template<typename Obj >
tlp::Circle< Obj >::Circle (  )  [inline]
template<typename Obj >
tlp::Circle< Obj >::Circle ( const Vector< Obj, 2 > &  pos,
Obj  radius 
) [inline]
template<typename Obj >
tlp::Circle< Obj >::Circle ( const Circle< Obj > &  c  )  [inline]
template<typename Obj >
tlp::Circle< Obj >::Circle ( Obj  x,
Obj  y,
Obj  radius 
) [inline]

Member Function Documentation

template<typename Obj >
bool tlp::Circle< Obj >::intersection ( const Circle< Obj > &  ,
const Vector< Obj, 2 > &  ,
const Vector< Obj, 2 > &   
) [inline]

Give the instersction of "this" with c, return false if no intersection exist

template<typename Obj >
bool tlp::Circle< Obj >::isIncludeIn ( const Circle< Obj > &  circle  )  const

Returns true if the circle is include in an other circle, false otherwise.

template<typename Obj >
Circle<Obj>& tlp::Circle< Obj >::merge ( const Circle< Obj > &  c  ) 

Merges this circle with another circle; merging operation consists in computing the smallest enclosing circle of the two circle and to store the result in "this".

template<typename Obj >
void tlp::Circle< Obj >::translate ( const Vector< Obj, 2 > &  v  )  [inline]

Translate "this" by vector v


Member Data Documentation

template<typename Obj >
Obj tlp::Circle< Obj >::radius

Radius of the circle



Tulip Software by LaBRI Visualization Team    2001 - 2012