Version: 5.5
public static float Dot (Quaternion a, Quaternion b);

Description

The dot product between two rotations.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { print(Quaternion.Dot(transform.rotation, Quaternion.identity)); } }