GJK_nD
 All Classes Files Functions Typedefs Friends Pages
Public Member Functions | Friends | List of all members
DLL::StraightLine Class Reference

A DLL model to represent digital straight lines. More...

#include <StraightLine.hpp>

Public Member Functions

void addInPoint (const Coordinates &xy)
 
void addDownPoint (const Coordinates &xy)
 
void addUpPoint (const Coordinates &xy)
 
bool stillGrowableAfterUpdate ()
 

Friends

std::ostream & operator<< (std::ostream &out, const StraightLine &line)
 

Detailed Description

A DLL model to represent digital straight lines.

The StraightLine class reprensents DLL that have an analytical representation of the form: h ≤ a.x + b.y ≤ H.

Member Function Documentation

void DLL::StraightLine::addDownPoint ( const Coordinates &  xy)
inline

Add the point xy to the set that has to lie on the negative side outside of the DLL.

void DLL::StraightLine::addInPoint ( const Coordinates &  xy)
inline

Add the point xy to the set that has to lie inside the DLL.

void DLL::StraightLine::addUpPoint ( const Coordinates &  xy)
inline

Add the point xy to the set that has to lie on the positive side outside of the DLL.

bool DLL::StraightLine::stillGrowableAfterUpdate ( )

Do the recognition process with the current sets of points and returns true if the DLL is still growable after we've added points. If it returns false, the DLL is not growable anymore and its reliable characteristics are the ones we got from the last call to stillGrowableAfterUpdate() that returned true.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const StraightLine line 
)
friend

Print the characteristics of the line on the out stream.


The documentation for this class was generated from the following files: