<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CGPoint",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@S@CGPoint"
  },
  "title" : "CGPoint"
}
-->

# CGPoint

```
struct CGPoint
```

## Topics

### Initializers

[`init()`](/documentation/CoreFoundation/CGPoint/init())

[`init?(dictionaryRepresentation: CFDictionary)`](/documentation/CoreFoundation/CGPoint/init(dictionaryRepresentation:))

[`init(x: Double, y: Double)`](/documentation/CoreFoundation/CGPoint/init(x:y:)-4lkgz)

[`init(x: Double, y: Double)`](/documentation/CoreFoundation/CGPoint/init(x:y:)-4tunm)

[`init(x: Int, y: Int)`](/documentation/CoreFoundation/CGPoint/init(x:y:)-72awk)

### Instance Properties

[`var customPlaygroundQuickLook: PlaygroundQuickLook`](/documentation/CoreFoundation/CGPoint/customPlaygroundQuickLook)

A custom playground Quick Look for this instance.

[`var dictionaryRepresentation: CFDictionary`](/documentation/CoreFoundation/CGPoint/dictionaryRepresentation)

[`var formattedDescription: String`](/documentation/CoreFoundation/CGPoint/formattedDescription)

[`var x: Double`](/documentation/CoreFoundation/CGPoint/x)

[`var y: Double`](/documentation/CoreFoundation/CGPoint/y)

### Instance Methods

[`func applying(CGAffineTransform) -> CGPoint`](/documentation/CoreFoundation/CGPoint/applying(_:)-2afxw)

[`func applying(ProjectionTransform) -> CGPoint`](/documentation/CoreFoundation/CGPoint/applying(_:)-5nfkk)

[`func equalTo(CGPoint) -> Bool`](/documentation/CoreFoundation/CGPoint/equalTo(_:))

### Type Properties

[`static var zero: CGPoint`](/documentation/CoreFoundation/CGPoint/zero)

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`CustomReflectable`](/documentation/Swift/CustomReflectable)

[`Decodable`](/documentation/Swift/Decodable)

[`Equatable`](/documentation/Swift/Equatable)

[`Copyable`](/documentation/Swift/Copyable)

[`Encodable`](/documentation/Swift/Encodable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Animatable`](/documentation/SwiftUI/Animatable)

[`Escapable`](/documentation/Swift/Escapable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)