---
title: "azimuthAngle(in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitouch/azimuthangle(in:)"
---

# azimuthAngle(in:)

Returns the azimuth angle (in radians) of the stylus.

## Declaration

```swift
func azimuthAngle(in view: UIView?) -> CGFloat
```

## Parameters

- `view`: The view that contains the stylus’s touch. Pass nil to get the azimuth angle that is relative to the touch’s window.

## Return Value

Return Value The azimuth angle of the stylus, in radians.

## Discussion

Discussion In the plane of the screen, the azimuth angle is the direction in which the stylus is pointing. With the tip of the stylus touching the screen, the value of this property is 0 radians when the cap end of the stylus (that is, the end opposite of the tip) points along the positive x axis of the device’s screen. The azimuth angle increases as the user swings the cap end of the stylus in a clockwise direction around the tip. note: It is more expensive to get the azimuth angle (as opposed to the azimuth unit vector), but it can also be more convenient

## See Also

### Getting touch attributes

- [tapCount](uikit/uitouch/tapcount.md)
- [timestamp](uikit/uitouch/timestamp.md)
- [type](uikit/uitouch/type.md)
- [UITouch.TouchType](uikit/uitouch/touchtype.md)
- [phase](uikit/uitouch/phase-swift.property.md)
- [UITouch.Phase](uikit/uitouch/phase-swift.enum.md)
- [force](uikit/uitouch/force.md)
- [maximumPossibleForce](uikit/uitouch/maximumpossibleforce.md)
- [altitudeAngle](uikit/uitouch/altitudeangle.md)
- [azimuthUnitVector(in:)](uikit/uitouch/azimuthunitvector(in:).md)
- [rollAngle](uikit/uitouch/rollangle.md)
