Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一直在阅读文档,发现它CGSize可以接受负值,因为它更像是一个“向量”表示。
CGSize
这样做的目的是什么?并不是说向量不能是负数,但现实世界的例子可能是一个人会遇到CGSize负数width或height?
width
height
注意:特别是当已经有另一个数据结构称为CGVector
CGVector