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.

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

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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