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.
假设我有这样的形状:
我想把它缩小到这个:
我如何计算点(红色圆圈)的位置?
new.x = scale * (old.x - center.x) + center.x new.y = scale * (old.y - center.y) + center.y
对每个点重复。