Advertisement
Guest User

Untitled

a guest
May 27th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. RectF area = new RectF(0, 0, 100, 100);
  2. RectF bounds = new RectF();
  3.  
  4. Path first = new Path();
  5. first.arcTo(area, 45, 135);
  6.  
  7. Path second = new Path();
  8. second.arcTo(area, 90, 90);
  9.  
  10. first.computeBounds(bounds, false);
  11. bounds.height(); // = 70.71068
  12. // RectF(0.0, 50.0, 85.35534, 120.71068)
  13.  
  14. second.computeBounds(bounds, false);
  15. bounds.height(); // = 50.0
  16. // RectF(0.0, 50.0, 50.0, 100.0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement