Container for 2D integer positions (pixel position) More...
Public Member Functions | |
pos2 (int x0=0, int y0=0) | |
direct constructor More... | |
int | x () const |
get x-coordinate More... | |
int & | x () |
get x-coordinate More... | |
int | y () const |
get y-coordinate More... | |
int & | y () |
get y-coordinate More... | |
Private Attributes | |
int | internal_x |
internal x-coordinate More... | |
int | internal_y |
internal y-coordinate More... | |
Container for 2D integer positions (pixel position)
cpe::pos2::pos2 | ( | int | x0 = 0 , |
int | y0 = 0 |
||
) |
direct constructor
int | x0: x-coordinate |
int | y0: y-coordinate |
int cpe::pos2::x | ( | ) | const |
get x-coordinate
References internal_x.
Referenced by cpe::z_buffer::assert_position(), cpe::image::check_position(), cpe::compute_line(), cpe::z_buffer::coordinate_to_index(), cpe::image::coordinate_to_index(), cpe::image::fill_rectangle(), cpe::operator+=(), cpe::operator-=(), cpe::operator<<(), cpe::swap_xy(), cpe::symetry_x(), cpe::symetry_y(), and cpe::triangle_scanline::triangle_scanline().
int & cpe::pos2::x | ( | ) |
get x-coordinate
References internal_x.
int cpe::pos2::y | ( | ) | const |
get y-coordinate
References internal_y.
Referenced by cpe::z_buffer::assert_position(), cpe::image::check_position(), cpe::compute_line(), cpe::z_buffer::coordinate_to_index(), cpe::image::coordinate_to_index(), cpe::image::fill_rectangle(), cpe::operator+=(), cpe::operator-=(), cpe::operator<<(), cpe::swap_xy(), cpe::symetry_x(), cpe::symetry_y(), and cpe::triangle_scanline::triangle_scanline().
int & cpe::pos2::y | ( | ) |
get y-coordinate
References internal_y.
|
private |
internal x-coordinate
Referenced by x().
|
private |
internal y-coordinate
Referenced by y().