# CGSize

{% tabs %}
{% tab title="🌀 CGSize" %}
```swift
import SwiftUI

// 🌀CGSize + 🅿️ Rectangular
extension CGSize: Rectangular {
    public var origin: CGPoint { .zero }
    public var size  : CGSize  {  self }
}

// 🌀CGSize + 🅿️ Vector2D
extension CGSize: Vector2D {
    public var x: CGFloat { width }
    public var y: CGFloat { height }
    public init(x: CGFloat, y: CGFloat) { 
        self.init(width: x, height: y) 
    }
}
```
{% endtab %}

{% tab title="👥  相關" %}
* [🅿️  Rectangular](../../../../../custom/package/geometrykit/frame)
* [🅿️  Vector2D](../../../../../custom/package/geometrykit/vector2d)
{% endtab %}
{% endtabs %}
