---
title: GKQuadtreeNode
framework: gameplaykit
role: symbol
role_heading: Class
path: gameplaykit/gkquadtreenode
---

# GKQuadtreeNode

A helper class for managing the objects you organize in a quadtree.

## Declaration

```swift
class GKQuadtreeNode
```

## Overview

Overview You don’t create instances of this class directly; instead, a GKQuadtree object provides you with a GKQuadtreeNode instance when you add an element to a tree. If you plan to remove elements from the tree, keep references to the corresponding nodes so you can use the remove(_:using:) method for better performance. For more information, see GameplayKit Programming Guide.

## Topics

### Examining a Node

- [quad](gameplaykit/gkquadtreenode/quad.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Spatial Partitioning

- [GKQuadtree](gameplaykit/gkquadtree.md)
- [GKOctree](gameplaykit/gkoctree.md)
- [GKOctreeNode](gameplaykit/gkoctreenode.md)
- [GKRTree](gameplaykit/gkrtree.md)
