1、精度不一样,Rect是使用int类型作为数值,RectF是使用float类型作为数值
2、两个类型提供的方法也不是完全一致

Rect:
equals(Object obj)   (for some reason it as it's own implementation of equals)
exactCenterX()
exactCenterY()
flattenToString()
toShortString()
unflattenFromString(String str)

RectF:
round(Rect dst)
roundOut(Rect dst)
set(Rect src)

 

sourceurl:http://longshuai2007.blog.163.com/blog/static/142094414201161832810371/

 

相关文章:

  • 2021-11-12
  • 2022-12-23
  • 2021-09-18
  • 2021-06-06
  • 2021-10-23
  • 2021-11-21
  • 2022-01-16
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2021-09-01
  • 2022-02-25
  • 2021-11-18
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案