Container for vector of 2D integer coordinates. More...
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< pos2 > | coordinate |
Storage for the coordinates. More... | |
Container for vector of 2D integer coordinates.
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().
int cpe::line_discrete::size | ( | ) | const |
Get the size of the coordinate vector.
References coordinate.
Referenced by debug(), cpe::triangle_scanline::get_coordinate(), cpe::reverse(), cpe::swap_xy(), cpe::symetry_x(), cpe::symetry_y(), and cpe::triangle_scanline::triangle_scanline().
std::vector<pos2> cpe::line_discrete::coordinate |
Storage for the coordinates.
Referenced by add(), debug(), cpe::triangle_scanline::get_coordinate(), cpe::reverse(), size(), cpe::swap_xy(), cpe::symetry_x(), cpe::symetry_y(), and cpe::triangle_scanline::triangle_scanline().