Structureswift 6.0.3Foundation
CGPoint
struct CGPoint
struct CGPoint
import Foundation
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Sendable
init()
init(from decoder: any Decoder) throws
init(x: Double, y: Double)
init(x: Int, y: Int)
init(x: CGFloat, y: CGFloat)
static var zero: CGPoint { get }
var x: CGFloat
var y: CGFloat
static func == (lhs: CGPoint, rhs: CGPoint) -> Bool
func encode(to encoder: any Encoder) throws
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.