<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:@S@GCPoint2"
  },
  "title" : "GCPoint2"
}
-->

# GCPoint2

A structure that represents a normalized point in a two-dimensional coordinate system.

```
struct GCPoint2
```

## Topics

### Creating a point

[`init()`](/documentation/GameController/GCPoint2/init())

Creates a two dimensional point with coordinates `(0, 0)`.

[`init(x:y:)`](/documentation/GameController/GCPoint2/init(x:y:))

Creates a two dimensional point with the given coordinates.

[`GCPoint2Make(_:_:)`](/documentation/GameController/GCPoint2Make(_:_:))

Returns a point with the specified coordinates in a two-dimensional coordinate system.

[`GCPoint2Zero`](/documentation/GameController/GCPoint2Zero)

The origin for a two dimensional point.

### Accessing coordinates

[`x`](/documentation/GameController/GCPoint2/x)

The x-coordinate for the point.

[`y`](/documentation/GameController/GCPoint2/y)

The y-coordinate for the point.

### Comparing and converting points

[`GCPoint2Equal(_:_:)`](/documentation/GameController/GCPoint2Equal(_:_:))

Returns whether two points are equal.

[`NSStringFromGCPoint2(_:)`](/documentation/GameController/NSStringFromGCPoint2(_:))

Returns a string representation of a 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)