---
title: "init(x:y:)"
framework: gamecontroller
role: symbol
role_heading: Initializer
path: "gamecontroller/gcpoint2/init(x:y:)"
---

# init(x:y:)

Creates a two dimensional point with the given coordinates.

## Declaration

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

## Parameters

- `x`: The x-coordinate for the point.
- `y`: The y-coordinate for the point.

## See Also

### Creating a point

- [init()](gamecontroller/gcpoint2/init().md)
- [GCPoint2Make(_:_:)](gamecontroller/gcpoint2make(_:_:).md)
- [GCPoint2Zero](gamecontroller/gcpoint2zero.md)
