Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RectF area = new RectF(0, 0, 100, 100);
- RectF bounds = new RectF();
- Path first = new Path();
- first.arcTo(area, 45, 135);
- Path second = new Path();
- second.arcTo(area, 90, 90);
- first.computeBounds(bounds, false);
- bounds.height(); // = 70.71068
- // RectF(0.0, 50.0, 85.35534, 120.71068)
- second.computeBounds(bounds, false);
- bounds.height(); // = 50.0
- // RectF(0.0, 50.0, 50.0, 100.0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement