Quaternion
.Dot
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
Quaternion
Quaternion
.Dot
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
Quaternion
All Members
Variables
eulerAngles
this [int index]
w
x
y
z
Constructors
Quaternion
Functions
SetFromToRotation
SetLookRotation
ToAngleAxis
ToString
Class Variables
identity
Class Functions
Angle
AngleAxis
Dot
Euler
FromToRotation
Inverse
Lerp
LookRotation
operator !=
operator *
operator ==
RotateTowards
Slerp
static
function
Dot (a : Quaternion, b : Quaternion) :
float
Description
The dot product between two rotations.
JavaScripts
JavaScript
C#
Boo
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
))