---
title: "multiply(byInverseOf:)"
framework: coremotion
role: symbol
role_heading: Instance Method
path: "coremotion/cmattitude/multiply(byinverseof:)"
---

# multiply(byInverseOf:)

Yields the change in attitude given a specific attitude.

## Declaration

```swift
func multiply(byInverseOf attitude: CMAttitude)
```

## Parameters

- `attitude`: An object representing the device’s attitude at a given moment of measurement.

## Discussion

Discussion This method multiplies the inverse of the specified CMAttitude object by the attitude represented by the receiving object. It replaces the receiving instance with the attitude change relative to the object passed in attitude. You should cache the CMAttitude instance you want to use as a reference and pass that object as the argument to subsequent calls of this method.
