Quaternion.Dot Manual     Reference     Scripting  
Scripting > Runtime Classes > Quaternion
Quaternion.Dot

static function Dot (a : Quaternion, b : Quaternion) : float

Description

The dot product between two rotations.

JavaScript
print(Quaternion.Dot (transform.rotation, Quaternion.identity));

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
print(Quaternion.Dot(transform.rotation, Quaternion.identity))