摘要: 实质是检测矩形与circle是否重叠基本函数,判断点是否在circle中1 public static boolean IsInside( float x, float y, Circle circle ){2 float disX = x - circle.x;3 ... 阅读全文
posted @ 2014-05-30 15:26 丛林小阁楼 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 利用ShapeRenderer可进行矩形进度条的绘制,多变形的填充等操作。这是根据角度获取矩形坐标的函数。 1 public Vector2 GetPoint( float x, float y, float w, float h, float angle ){ 2 Vect... 阅读全文
posted @ 2014-05-30 11:17 丛林小阁楼 阅读(680) 评论(0) 推荐(0) 编辑