cpe::line_discrete Struct Reference

Container for vector of 2D integer coordinates. More...

+ Collaboration diagram for cpe::line_discrete:

Public Member Functions

void add (const pos2 &position)
 Add a new coordinate in the vector. More...
 
int size () const
 Get the size of the coordinate vector. More...
 
void debug () const
 Print the values of the coordinate vector. More...
 
void compute_interpolation ()
 Compute the relative coordinate values between beginning to the end. More...
 

Public Attributes

std::vector< pos2coordinate
 Storage for the coordinates. More...
 

Detailed Description

Container for vector of 2D integer coordinates.

Member Function Documentation

void cpe::line_discrete::add ( const pos2 position)

Add a new coordinate in the vector.

References coordinate.

Referenced by cpe::compute_line(), cpe::compute_line_vertical(), cpe::reverse(), and cpe::swap_xy().

void cpe::line_discrete::compute_interpolation ( )

Compute the relative coordinate values between beginning to the end.

void cpe::line_discrete::debug ( ) const

Print the values of the coordinate vector.

References coordinate, and size().

+ Here is the call graph for this function:

int cpe::line_discrete::size ( ) const

Member Data Documentation

std::vector<pos2> cpe::line_discrete::coordinate

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