๐ŸŒ€CGVector

// ๐ŸŒ€CGVector + ๐Ÿ…ฟ๏ธ Vector2D
extension CGVector: Vector2D {
    public var x: CGFloat { dx }
    public var y: CGFloat { dy }
    public init(x: CGFloat, y: CGFloat) { 
        self.init(dx: x, dy: y) 
    }
}

Last updated