---
title: Quaternion4Extensions
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4extensions
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4extensions.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:17:47.693Z
locale: en-us
---

# Quaternion4Extensions

> Extension methods for the quaternion4 type. Every operation is applied per lane.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public static class Quaternion4Extensions
```

## Static Methods

| Method                                                                                                   | Description                                                                                                                                                                                             |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Add](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/add.md)                     | Returns q1 + q2 with q2 flipped into the hemisphere of q1. The result isn't normalized, so it can be used to accumulate weighted rotations.                                                             |
| [Conjugate](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/conjugate.md)         | Returns the conjugate of the quaternion4.                                                                                                                                                               |
| [Dot](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/dot.md)                     | Returns the dot product of two quaternion4 values.                                                                                                                                                      |
| [Hash](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/hash.md)                   | Computes a single hash code that combines all four quaternions of the quaternion4.                                                                                                                      |
| [HashWide](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/hashwide.md)           | Computes a separate hash code for each of the four quaternions of the quaternion4.                                                                                                                      |
| [Mul](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/mul.md)                     | Computes the quaternion product of `lhs` and `rhs`.                                                                                                                                                     |
| [Nlerp](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/nlerp.md)                 | Computes the normalized linear interpolation from `q1` to `q2` along the shortest path.                                                                                                                 |
| [Normalize](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/normalize.md)         | Returns the normalized quaternion4.                                                                                                                                                                     |
| [NormalizeSafe](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/normalizesafe.md) | Returns the normalized quaternion4, or the identity for the lanes whose squared length isn't greater than [FLT\_MIN\_NORMAL](/engine/7000.0/script-reference/unity/mathematics/math/flt-min-normal.md). |
| [QuatWeight](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/quatweight.md)       | Weights each rotation of the quaternion4 toward the identity rotation, for additive blending.                                                                                                           |
| [Select](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/select.md)               | Selects, for each lane, `b` where `c` is `true` and `a` otherwise.                                                                                                                                      |
| [ToFloat4x4](/engine/7000.0/script-reference/unity/animations/quaternion4extensions/tofloat4x4.md)       | Returns a float4x4 whose columns are the x, y, z and w planes of the quaternion4.                                                                                                                       |
