Android Graphics Rectangle

Android examples for Graphics:Rectangle

Description

Click the following links for the tutorial for Graphics and Rectangle.

  1. is Point Inside Rect
  2. RectF To Rect
  3. Calculates the aspect ratio given a rectangle.
  4. Calculates the y-coordinate of the bottom edge given the other sides of the rectangle and an aspect ratio.
  5. Calculates the height of a rectangle given the left and right edges and an aspect ratio.
  6. Calculates the x-coordinate of the left edge given the other sides of the rectangle and an aspect ratio.
  7. Calculates the x-coordinate of the right edge given the other sides of the rectangle and an aspect ratio.
  8. Calculates the y-coordinate of the top edge given the other sides of the rectangle and an aspect ratio.


  9. Calculates the width of a rectangle given the top and bottom edges and an aspect ratio.
  10. Scales the given rectangle by the given scale factor.
  11. check Rect Bounds
  12. check Rect Bounds Intersect
  13. create Round Rect Path
  14. get Reduce RectF
  15. get Collision Bounds between two Rect
  16. get Center between two Rectangle


  17. make Rect
  18. rotate Rect
  19. scale Rect
  20. get Rect Center X
  21. get Rect Center Y
  22. grow a Rectangle
  23. get Center From Rect
  24. Gets a float array of the 2D coordinates representing a rectangles corners.
  25. Gets a float array of two lengths representing a rectangles width and height The order of the corners in the input float array is: 0------->1 ^ | | | | v 3<-------2
  26. Takes an array of 2D coordinates representing corners and returns the smallest rectangle containing those coordinates.
  27. scale Center Crop Rectangle
  28. scale Rectangle
  29. scale Rectangle To Clamp Size
  30. get Rect Ratio
  31. is Rectangle Intersect
  32. union Rectangles
  33. Transform the upright full rectangle so that it bounds the original rotated image, given by the orientation.
  34. adjust Rectangle Center
  35. adjust Rectangle Radius
  36. get Rectangle Radius
  37. extend Rectangle