This commit is contained in:
parent
b35617dd9a
commit
c634faf7b8
18 changed files with 698 additions and 236 deletions
|
@ -155,6 +155,25 @@ TVECTOR Out;
|
|||
return Out;
|
||||
}
|
||||
|
||||
/**************************************************************************************/
|
||||
CPoint IDToPoint(int ID,int Width)
|
||||
{
|
||||
CPoint XY;
|
||||
|
||||
XY.x=ID%Width;
|
||||
XY.y=ID/Width;
|
||||
return(XY);
|
||||
}
|
||||
|
||||
/**************************************************************************************/
|
||||
int PointToID(CPoint &Pnt,int Width)
|
||||
{
|
||||
int ID;
|
||||
ID=(Pnt.y*Width)+Pnt.x;
|
||||
|
||||
return(ID);
|
||||
}
|
||||
|
||||
/**************************************************************************************/
|
||||
/**************************************************************************************/
|
||||
/**************************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue