Pay for Hesitation: Idiom: Check Boundary

Pages

2010年8月9日 星期一

Idiom: Check Boundary

point.x = Math.min(p.x, boundary.LeftBoundary);
point.x = Math.max(p.x, boundary.RightBoundary);

point.y = Math.min(p.y, boundary.BottomBoundary);
point.y = Math.max(p.y, boundary.TopBoundary);


沒有留言: