cpe::pos2 Class Reference

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...
 

Detailed Description

Container for 2D integer positions (pixel position)

Constructor & Destructor Documentation

cpe::pos2::pos2 ( int  x0 = 0,
int  y0 = 0 
)

direct constructor

Parameters
intx0: x-coordinate
inty0: y-coordinate

Member Function Documentation

int & cpe::pos2::x ( )

get x-coordinate

References internal_x.

int & cpe::pos2::y ( )

get y-coordinate

References internal_y.

Member Data Documentation

int cpe::pos2::internal_x
private

internal x-coordinate

Referenced by x().

int cpe::pos2::internal_y
private

internal y-coordinate

Referenced by y().


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