<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.3.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCPoint2/init(x:y:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "s:So8GCPoint2V1x1yABSf_Sftcfc"
  },
  "title" : "init(x:y:)"
}
-->

# init(x:y:)

Creates a two dimensional point with the given coordinates.

```
init(x: Float, y: Float)
```

## Parameters

`x`

The x-coordinate for the point.

`y`

The y-coordinate for the point.

---

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)