Public Member Functions | |
triangle_scanline (const pos2 &u0, const pos2 &u1, const pos2 &u2) | |
Direct construction from 3 positions (u0,u1,u2) More... | |
const pos2 & | get_coordinate (const line_pointer &p) |
Get coordinate of the discrete line pointed by p. More... | |
int | size () |
Size of triangle in x direction. More... | |
Public Attributes | |
std::vector< line_pointer > | first_point |
storage of the pointer for the first point More... | |
std::vector< line_pointer > | last_point |
storage of the pointer for the last point More... | |
line_discrete | line [3] |
storage for the 3 discrete lines of the border of the triangle More... | |
Structure for triangle scanline
Direct construction from 3 positions (u0,u1,u2)
References cpe::compute_line(), cpe::line_discrete::coordinate, first_point, get_coordinate(), last_point, line, cpe::line_discrete::size(), cpe::pos2::x(), and cpe::pos2::y().
const pos2 & cpe::triangle_scanline::get_coordinate | ( | const line_pointer & | p | ) |
Get coordinate of the discrete line pointed by p.
References cpe::line_discrete::coordinate, cpe::line_pointer::index, line, cpe::line_pointer::line_number, and cpe::line_discrete::size().
Referenced by triangle_scanline().
int cpe::triangle_scanline::size | ( | ) |
std::vector<line_pointer> cpe::triangle_scanline::first_point |
storage of the pointer for the first point
Referenced by cpe::draw_triangle(), size(), and triangle_scanline().
std::vector<line_pointer> cpe::triangle_scanline::last_point |
storage of the pointer for the last point
Referenced by cpe::draw_triangle(), and triangle_scanline().
line_discrete cpe::triangle_scanline::line[3] |
storage for the 3 discrete lines of the border of the triangle
Referenced by get_coordinate(), and triangle_scanline().