GeometryKit
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ GeometryKit
為了方便幾何計算而設計的模組,支援向量、複數運算。
MetricSpace:支援「距離」觀念
Frame:簡化 frame 與 CGRect 的相關計算
Vector:支援「向量運算」的底層邏輯
Vector2D:支援「平面幾何」的各種計算
ComplexNumber:支援「複數」運算
做好這些宣告後,其他檔案就不需要再宣告一次了。但使用到 GeometryKit 相關功能時,還是需要 import GeometryKit
,請注意❗️