Quaternion
More information can be found in the Unity API Reference
Constructors
Constructor |
Description |
---|---|
Members
Member |
Description |
---|---|
Methods
Method |
Description |
---|---|
Static members
Member |
Description |
---|---|
|
|
|
Static methods
Method |
Description |
---|---|
Operators
Operator |
Description |
---|---|
Details
-
class Quaternion
-
Quaternion Quaternion(float x, float y, float z, float w)
-
Quaternion Quaternion()
-
const Quaternion normalized
-
float w
-
float x
-
float y
-
float z
-
int GetHashCode()
-
void Normalize()
-
void Set(float newX, float newY, float newZ, float newW)
-
string ToString()
-
string ToString(string format)
-
static const Quaternion identity
-
static const float kEpsilon
-
static float Angle(Quaternion a, Quaternion b)
-
static Quaternion AngleAxis(float angle, Vector3 axis)
-
static float Dot(Quaternion a, Quaternion b)
-
static Quaternion Euler(Vector3 euler)
-
static Quaternion Euler(float x, float y, float z)
-
static Quaternion FromToRotation(Vector3 fromDirection, Vector3 toDirection)
-
static Quaternion Inverse(Quaternion rotation)
-
static Quaternion Lerp(Quaternion a, Quaternion b, float t)
-
static Quaternion LerpUnclamped(Quaternion a, Quaternion b, float t)
-
static Quaternion LookRotation(Vector3 forward)
-
static Quaternion LookRotation(Vector3 forward, Vector3 upwards)
-
static Quaternion Normalize(Quaternion q)
-
static Quaternion RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta)
-
static Quaternion Slerp(Quaternion a, Quaternion b, float t)
-
static Quaternion SlerpUnclamped(Quaternion a, Quaternion b, float t)
-
static bool operator!=(Quaternion lhs, Quaternion rhs)
-
static Quaternion operator*(Quaternion lhs, Quaternion rhs)
-
static Vector3 operator*(Quaternion rotation, Vector3 point)
-
static bool operator==(Quaternion lhs, Quaternion rhs)
-
Quaternion Quaternion(float x, float y, float z, float w)