Update value compute

This commit is contained in:
sloop
2016-08-12 19:24:01 +08:00
parent b4c34c278f
commit 32ae474803

View File

@@ -289,6 +289,17 @@ mapRadius: 70.71068
**3.mapRect** **3.mapRect**
``` java ``` java
RectF rect = new RectF(400, 400, 1000, 800);
// 构造一个matrixx坐标缩放0.5
Matrix matrix = new Matrix();
matrix.setScale(0.5f, 1f);
Log.i(TAG, "mapRadius: "+rect.toString());
matrix.mapRect(rect);
Log.i(TAG, "mapRadius: "+rect.toString());
``` ```
测量矩形变换后位置。 测量矩形变换后位置。