<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/HorizonObservation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision18HorizonObservationV"
  },
  "title" : "HorizonObservation"
}
-->

# HorizonObservation

The horizon angle information that an image-analysis request detects.

```
struct HorizonObservation
```

## Overview

Instances of this class result from invoking a [`DetectHorizonRequest`](/documentation/Vision/DetectHorizonRequest), and report the angle and transform of the horizon in an image.

## Topics

### Creating an observation

[`init(_:)`](/documentation/Vision/HorizonObservation/init(_:))

Creates a horizon observation.

### Inspecting an observation

[`angle`](/documentation/Vision/HorizonObservation/angle)

The angle of the observed horizon.

### Getting the transform

[`transform`](/documentation/Vision/HorizonObservation/transform)

The transform to apply to the detected horizon.

[`transform(for:)`](/documentation/Vision/HorizonObservation/transform(for:))

Creates an affine transform for the specified image width and height.



---

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)