---
title: "GCPoint2Equal(_:_:)"
framework: gamecontroller
role: symbol
role_heading: Function
path: "gamecontroller/gcpoint2equal(_:_:)"
---

# GCPoint2Equal(_:_:)

Returns whether two points are equal.

## Declaration

```swift
func GCPoint2Equal(_ point1: GCPoint2, _ point2: GCPoint2) -> Bool
```

## Parameters

- `point1`: The first point to compare.
- `point2`: The second point to compare.

## Return Value

Return Value true if the points are the same; otherwise, false.

## See Also

### Comparing and converting points

- [NSStringFromGCPoint2(_:)](gamecontroller/nsstringfromgcpoint2(_:).md)
