Inherits IEquatable< Quaternion >.
Public Member Functions | |
Quaternion (Vector3 vector, float scalar) | |
Quaternion (float scalar, Vector3 vector) | |
Quaternion (float xCoord, float yCoord, float zCoord, float scalar) | |
Quaternion (Matrix3x3 matrix) | |
Quaternion (Matrix3x4 matrix) | |
Quaternion (Matrix4x4 matrix) | |
Quaternion (Vector3 forwardDirection) | |
Quaternion (Angles3 angles) | |
Quaternion (Vec3 right, Vec3 forward, Vec3 up) | |
Quaternion (Vector3 right, Vector3 forward, Vector3 up) | |
override int | GetHashCode () |
override bool | Equals (object obj) |
bool | Equals (Quaternion other) |
override string | ToString () |
void | Normalize () |
float | Dot (Quaternion other) |
Quaternion | Difference (Quaternion other) |
void | SetLookOrientation (Vector3 forward, Vector3 up) |
void | SetFromToRotation (Vector3 fromDirection, Vector3 toDirection) |
bool | IsValid () |
Static Public Member Functions | |
static implicit | operator Quat (Quaternion managedQuat) |
static implicit | operator Quaternion (Quat nativeQuat) |
static Quaternion | operator* (Quaternion value, float scale) |
static Quaternion | operator- (Quaternion q) |
static Quaternion | operator! (Quaternion q) |
static Quaternion | operator* (Quaternion left, Quaternion right) |
static Quaternion | operator/ (Quaternion left, Quaternion right) |
static Quaternion | operator% (Quaternion left, Quaternion right) |
static Quaternion | operator- (Quaternion left, Quaternion right) |
static Quaternion | operator/ (Quaternion left, float right) |
static Vector3 | operator* (Quaternion quat, Vector3 vector) |
static Vector3 | operator* (Vector3 vector, Quaternion quat) |
static bool | operator== (Quaternion left, Quaternion right) |
static bool | operator!= (Quaternion left, Quaternion right) |
static Quaternion | CreateFromVectors (Vector3 right, Vector3 forward, Vector3 up) |
static Quaternion | CreateRotationX (float radians) |
static Quaternion | CreateRotationY (float radians) |
static Quaternion | CreateRotationZ (float radians) |
static Quaternion | CreateRotationXYZ (Angles3 angles) |
static Quaternion | Slerp (Quaternion start, Quaternion end, float timeRatio) |
Spherical-Interpolation between unit quaternions. More... | |
static Quaternion | Lerp (Quaternion start, Quaternion end, float timeRatio) |
Linear-Interpolation between unit quaternions. More... | |
Static Public Attributes | |
static readonly Quaternion | Identity = new Quaternion(1, new Vector3(0, 0, 0)) |
Properties | |
float | x [get, set] |
float | y [get, set] |
float | z [get, set] |
float | w [get, set] |
Vector3 | v [get, set] |
float | X [get, set] |
float | Y [get, set] |
float | Z [get, set] |
float | W [get, set] |
Vector3 | V [get, set] |
Vector3 | Right [get] |
Vector3 | Forward [get] |
Vector3 | Up [get] |
Angles3 | EulerAngles [get] |
Quaternion | Inverted [get] |
Quaternion | Normalized [get] |
float | Length [get] |
float | Magnitude [get] |
float | LengthSquared [get] |
bool | IsIdentity [get] |
Angles3 | YawPitchRoll [get, set] |
The yaw, pitch and roll of this Quaternion. x-YAW y-PITCH (negative=looking down / positive=looking up) z-ROLL More... | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline static |
Linear-Interpolation between unit quaternions.
start | Starting quaternion, will be returned if time is 0 |
end | End quaternion, will be returned if time is 1 |
timeRatio | The ratio to slerp between, e.g. 0 = start, 1 = end |
|
inline |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
|
inline static |
Spherical-Interpolation between unit quaternions.
start | Starting quaternion, will be returned if time is 0 |
end | End quaternion, will be returned if time is 1 |
timeRatio | The ratio to slerp between, e.g. 0 = start, 1 = end |
|
inline |
|
static |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get set |
|
get set |
|
get set |
|
get set |
|
get set |
|
get set |
|
get set |
|
get set |
|
get set |
The yaw, pitch and roll of this Quaternion. x-YAW y-PITCH (negative=looking down / positive=looking up) z-ROLL
COORDINATE-SYSTEM z-axis ^ | | y-axis | / | / |/ +------------—> x-axis Note: If we are looking along the z-axis, its not possible to specify the x and z-angle.
The yaw pitch roll.
|
get set |
|
get set |