<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/RoomAnchor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit10RoomAnchorV"
  },
  "title" : "RoomAnchor"
}
-->

# RoomAnchor

The representation of a room ARKit is currently tracking.

```
struct RoomAnchor
```

## Overview

A `RoomAnchor` structure describes an approximate representation of the room’s geometry, and contains arrays with identifiers of mesh and plane anchors that the framework associates with that room.

## Topics

### Getting information about a room anchor

[`var geometry: MeshAnchor.Geometry`](/documentation/ARKit/RoomAnchor/geometry)

The geometry of the mesh in an anchor’s coordinate system.

[`var id: UUID`](/documentation/ARKit/RoomAnchor/id)

The unique identifier of this anchor.

[`var isCurrentRoom: Bool`](/documentation/ARKit/RoomAnchor/isCurrentRoom)

A Boolean value that indicates whether a room is a person’s current location.

[`var meshAnchorIDs: [UUID]`](/documentation/ARKit/RoomAnchor/meshAnchorIDs)

An array of IDs of the mesh anchors associated with a room.

[`var originFromAnchorTransform: simd_float4x4`](/documentation/ARKit/RoomAnchor/originFromAnchorTransform)

The transform from the room anchor to the origin coordinate system.

[`var planeAnchorIDs: [UUID]`](/documentation/ARKit/RoomAnchor/planeAnchorIDs)

An array of IDs of the plane anchors associated with a room.

### Inspecting a room anchor

[`func contains(SIMD3<Float>) -> Bool`](/documentation/ARKit/RoomAnchor/contains(_:))

Returns a Boolean value that indicates whether a room contains the provided point.

[`func geometries(of: MeshAnchor.MeshClassification) -> [MeshAnchor.Geometry]`](/documentation/ARKit/RoomAnchor/geometries(of:))

Returns the disjoint mesh geometries of a given classification.

[`var description: String`](/documentation/ARKit/RoomAnchor/description)

A textual representation of this anchor.

### Operators

[`static func == (RoomAnchor, RoomAnchor) -> Bool`](/documentation/ARKit/RoomAnchor/==(_:_:))

Returns a Boolean value indicating whether two room anchors are equal.

### Instance Methods

[`func geometries(classifiedAs: SurfaceClassification) -> [MeshAnchor.Geometry]`](/documentation/ARKit/RoomAnchor/geometries(classifiedAs:))

Get disjoint mesh geometries of a given surface classification.

### Default Implementations

[ARKitCoordinateSpaceProviding Implementations](/documentation/ARKit/RoomAnchor/ARKitCoordinateSpaceProviding-Implementations)

## Relationships

### Conforms To

[`ARKitCoordinateSpaceProviding`](/documentation/ARKit/ARKitCoordinateSpaceProviding)

[`Escapable`](/documentation/Swift/Escapable)

[`Copyable`](/documentation/Swift/Copyable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Anchor`](/documentation/ARKit/Anchor)

[`Sendable`](/documentation/Swift/Sendable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)