quaternion More...
Public Member Functions | |
Quaternion (float x, float y, float z, float w) | |
constructor taking 4 floats | |
Quaternion (Vector3 xyz, float w) | |
constructor taking a Vector3 and a scalar float | |
Quaternion (Vector4 v) | |
constructor taking a Vector4 | |
float | Length () |
return the length of this quaternion | |
float | LengthSquared () |
return the length squared of this quaternion | |
float | Dot (Quaternion q) |
dot product | |
float | Dot (ref Quaternion q) |
dot product | |
Quaternion | Normalize () |
return a unit quaternion | |
void | Normalize (out Quaternion result) |
return a unit quaternion | |
Quaternion | Conjugate () |
quaternion conjugate | |
void | Conjugate (out Quaternion result) |
quaternion conjugate | |
Quaternion | Inverse () |
quaternion inverse | |
void | Inverse (out Quaternion result) |
quaternion inverse | |
Quaternion | Slerp (Quaternion q, float f) |
slerp between 2 quaternions | |
void | Slerp (ref Quaternion q, float f, out Quaternion result) |
slerp between 2 quaternions | |
Quaternion | Lerp (Quaternion q, float f) |
lerp between 2 quaternions | |
void | Lerp (ref Quaternion q, float f, out Quaternion result) |
lerp between 2 quaternions | |
Quaternion | Log () |
quaternion log | |
void | Log (out Quaternion result) |
quaternion log | |
Quaternion | Exp () |
quaternion exp | |
void | Exp (out Quaternion result) |
quaternion exp | |
Quaternion | TurnTo (Quaternion q, float angle) |
turn to target quaternion by specified angle | |
void | TurnTo (ref Quaternion q, float angle, out Quaternion result) |
turn to target quaternion by specified angle | |
float | Angle (Quaternion q) |
get the angle between this and the input quaternion | |
float | Angle (ref Quaternion q) |
get the angle between this and the input quaternion | |
Vector4 | Transform (Vector4 v) |
return this * v | |
void | Transform (ref Vector4 v, out Vector4 result) |
result = this * v | |
Vector3 | Transform (Vector3 v) |
return this * v | |
void | Transform (ref Vector3 v, out Vector3 result) |
result = this * v | |
Vector2 | Transform (Vector2 v) |
return this * v | |
void | Transform (ref Vector2 v, out Vector2 result) |
result = this * v | |
Quaternion | Add (Quaternion q) |
return this + q | |
void | Add (ref Quaternion q, out Quaternion result) |
result = this + q | |
Quaternion | Subtract (Quaternion q) |
return this - q | |
void | Subtract (ref Quaternion q, out Quaternion result) |
result = this - q | |
Quaternion | Multiply (Quaternion q) |
return this * q | |
void | Multiply (ref Quaternion q, out Quaternion result) |
result = this * q | |
Quaternion | Multiply (float f) |
return this * f | |
void | Multiply (float f, out Quaternion result) |
result = this * f | |
Quaternion | Divide (float f) |
return this / f | |
void | Divide (float f, out Quaternion result) |
result = this / f | |
Quaternion | Negate () |
return -this | |
void | Negate (out Quaternion result) |
result = -this | |
Vector4 | ToVector4 () |
return the quaternion as a Vector4 | |
void | ToVector4 (out Vector4 result) |
return the quaternion as a Vector4 | |
Matrix4 | ToMatrix4 () |
convert this quaternion to a Matrix4 | |
void | ToMatrix4 (out Matrix4 result) |
convert this quaternion to a Matrix4 | |
void | ToAxisAngle (out Vector3 axis, out float angle) |
extract the rotation axis and angle from this quaternion | |
bool | IsUnit (float epsilon) |
test if this is a unit quaternion | |
bool | IsIdentity () |
test if this is an identity quaternion | |
bool | IsInfinity () |
test if any elements of this are Infinity | |
bool | IsNaN () |
test if any elements of this are NaN | |
bool | Equals (Quaternion q, float epsilon) |
equality test with an epsilon | |
bool | Equals (Quaternion q) |
equality test | |
override bool | Equals (Object o) |
equality test | |
override string | ToString () |
get the string representation of this quaternion | |
override int | GetHashCode () |
gets the hash code for this vector | |
Static Public Member Functions | |
static Quaternion | FromMatrix4 (Matrix4 m) |
return a quaternion representing a rotation matrix | |
static void | FromMatrix4 (ref Matrix4 m, out Quaternion result) |
return a quaternion representing a rotation matrix | |
static Quaternion | RotationAxis (Vector3 axis, float angle) |
return a quaternion representing a rotation about an arbitrary axis | |
static void | RotationAxis (ref Vector3 axis, float angle, out Quaternion result) |
return a quaternion representing a rotation about an arbitrary axis | |
static Quaternion | RotationX (float angle) |
return a quaternion representing a rotation about the x axis | |
static void | RotationX (float angle, out Quaternion result) |
return a quaternion representing a rotation about the x axis | |
static Quaternion | RotationY (float angle) |
return a quaternion representing a rotation about the y axis | |
static void | RotationY (float angle, out Quaternion result) |
return a quaternion representing a rotation about the y axis | |
static Quaternion | RotationZ (float angle) |
return a quaternion representing a rotation about the z axis | |
static void | RotationZ (float angle, out Quaternion result) |
return a quaternion representing a rotation about the z axis | |
static Quaternion | RotationZyx (float x, float y, float z) |
create a new quaternion from three euler angles | |
static void | RotationZyx (float x, float y, float z, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationZyx (Vector3 angles) |
create a new quaternion from three euler angles | |
static void | RotationZyx (ref Vector3 angles, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationYxz (float x, float y, float z) |
create a new quaternion from three euler angles | |
static void | RotationYxz (float x, float y, float z, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationYxz (Vector3 angles) |
create a new quaternion from three euler angles | |
static void | RotationYxz (ref Vector3 angles, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationXzy (float x, float y, float z) |
create a new quaternion from three euler angles | |
static void | RotationXzy (float x, float y, float z, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationXzy (Vector3 angles) |
create a new quaternion from three euler angles | |
static void | RotationXzy (ref Vector3 angles, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationXyz (float x, float y, float z) |
create a new quaternion from three euler angles | |
static void | RotationXyz (float x, float y, float z, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationXyz (Vector3 angles) |
create a new quaternion from three euler angles | |
static void | RotationXyz (ref Vector3 angles, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationYzx (float x, float y, float z) |
create a new quaternion from three euler angles | |
static void | RotationYzx (float x, float y, float z, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationYzx (Vector3 angles) |
create a new quaternion from three euler angles | |
static void | RotationYzx (ref Vector3 angles, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationZxy (float x, float y, float z) |
create a new quaternion from three euler angles | |
static void | RotationZxy (float x, float y, float z, out Quaternion result) |
create a new quaternion from three euler angles | |
static Quaternion | RotationZxy (Vector3 angles) |
create a new quaternion from three euler angles | |
static void | RotationZxy (ref Vector3 angles, out Quaternion result) |
create a new quaternion from three euler angles | |
static float | Length (Quaternion q) |
static function equivalent to Length() | |
static float | Length (ref Quaternion q) |
static function equivalent to Length() | |
static float | LengthSquared (Quaternion q) |
static function equivalent to LengthSquared() | |
static float | LengthSquared (ref Quaternion q) |
static function equivalent to LengthSquared() | |
static float | Dot (Quaternion q1, Quaternion q2) |
static function equivalent to Dot(Quaternion) | |
static float | Dot (ref Quaternion q1, ref Quaternion q2) |
static function equivalent to Dot(ref Quaternion) | |
static Quaternion | Normalize (Quaternion q) |
static function equivalent to Normalize() | |
static void | Normalize (ref Quaternion q, out Quaternion result) |
static function equivalent to Normalize(out Quaternion) | |
static Quaternion | Conjugate (Quaternion q) |
static function equivalent to Conjugate() | |
static void | Conjugate (ref Quaternion q, out Quaternion result) |
static function equivalent to Conjugate(out Quaternion) | |
static Quaternion | Inverse (Quaternion q) |
static function equivalent to Inverse() | |
static void | Inverse (ref Quaternion q, out Quaternion result) |
static function equivalent to Inverse(out Quaternion) | |
static Quaternion | Slerp (Quaternion q1, Quaternion q2, float f) |
static function equivalent to Slerp(Quaternion, float) | |
static void | Slerp (ref Quaternion q1, ref Quaternion q2, float f, out Quaternion result) |
static function equivalent to Slerp(ref Quaternion, float, out Quaternion) | |
static Quaternion | Lerp (Quaternion q1, Quaternion q2, float f) |
static function equivalent to Lerp(Quaternion, float) | |
static void | Lerp (ref Quaternion q1, ref Quaternion q2, float f, out Quaternion result) |
static function equivalent to Lerp(ref Quaternion, float, out Quaternion) | |
static Quaternion | Log (Quaternion q) |
static function equivalent to Log() | |
static void | Log (ref Quaternion q, out Quaternion result) |
static function equivalent to Log(out Quaternion) | |
static Quaternion | Exp (Quaternion q) |
static function equivalent to Exp() | |
static void | Exp (ref Quaternion q, out Quaternion result) |
static function equivalent to Exp(out Quaternion) | |
static Quaternion | TurnTo (Quaternion q1, Quaternion q2, float angle) |
static function equivalent to TurnTo(Quaternion, float) | |
static void | TurnTo (ref Quaternion q1, ref Quaternion q2, float angle, out Quaternion result) |
static function equivalent to TurnTo(ref Quaternion, float, out Quaternion) | |
static float | Angle (Quaternion q1, Quaternion q2) |
static function equivalent to Angle(Quaternion) | |
static float | Angle (ref Quaternion q1, ref Quaternion q2) |
static function equivalent to Angle(ref Quaternion) | |
static Vector4 | Transform (Quaternion q, Vector4 v) |
static function equivalent to Transform(Vector4) | |
static void | Transform (ref Quaternion q, ref Vector4 v, out Vector4 result) |
static function equivalent to Transform(ref Vector4, out Vector4) | |
static Vector3 | Transform (Quaternion q, Vector3 v) |
static function equivalent to Transform(Vector3) | |
static void | Transform (ref Quaternion q, ref Vector3 v, out Vector3 result) |
static function equivalent to Transform(ref Vector3, out Vector3) | |
static Vector2 | Transform (Quaternion q, Vector2 v) |
static function equivalent to Transform(Vector2) | |
static void | Transform (ref Quaternion q, ref Vector2 v, out Vector2 result) |
static function equivalent to Transform(ref Vector2, out Vector2) | |
static Quaternion | Add (Quaternion q1, Quaternion q2) |
static function equivalent to Add(Quaternion) | |
static void | Add (ref Quaternion q1, ref Quaternion q2, out Quaternion result) |
static function equivalent to Add(ref Quaternion, out Quaternion) | |
static Quaternion | Subtract (Quaternion q1, Quaternion q2) |
static function equivalent to Subtract(Quaternion) | |
static void | Subtract (ref Quaternion q1, ref Quaternion q2, out Quaternion result) |
static function equivalent to Subtract(ref Quaternion, out Quaternion) | |
static Quaternion | Multiply (Quaternion q1, Quaternion q2) |
static function equivalent to Multiply(Quaternion) | |
static void | Multiply (ref Quaternion q1, ref Quaternion q2, out Quaternion result) |
static function equivalent to Multiply(ref Quaternion, out Quaternion) | |
static Quaternion | Multiply (Quaternion q, float f) |
static function equivalent to Multiply(float) | |
static void | Multiply (ref Quaternion q, float f, out Quaternion result) |
static function equivalent to Multiply(float, out Quaternion) | |
static Quaternion | Divide (Quaternion q, float f) |
static function equivalent to Divide(float) | |
static void | Divide (ref Quaternion q, float f, out Quaternion result) |
static function equivalent to Divide(float, out Quaternion) | |
static Quaternion | Negate (Quaternion q) |
static function equivalent to Negate() | |
static void | Negate (ref Quaternion q, out Quaternion result) |
static function equivalent to Negate(out Quaternion) | |
static bool | operator== (Quaternion q1, Quaternion q2) |
equality operator | |
static bool | operator!= (Quaternion q1, Quaternion q2) |
not equals operator | |
static Quaternion | operator+ (Quaternion q1, Quaternion q2) |
addition operator | |
static Quaternion | operator- (Quaternion q1, Quaternion q2) |
subtraction operator | |
static Quaternion | operator- (Quaternion q) |
unary minus operator | |
static Quaternion | operator* (Quaternion q1, Quaternion q2) |
multiplication operator | |
static Quaternion | operator* (Quaternion q, float f) |
multiply a quaternion by a scalar float | |
static Quaternion | operator* (float f, Quaternion q) |
multiply a quaternion by a scalar float | |
static Quaternion | operator/ (Quaternion q, float f) |
division operator | |
Public Attributes | |
float | X |
X. | |
float | Y |
Y. | |
float | Z |
Z. | |
float | W |
W. | |
Static Public Attributes | |
static readonly Quaternion | Identity = new Quaternion(0.0f, 0.0f, 0.0f, 1.0f) |
identity quaternion |
quaternion
Quaternion | ( | float | x, |
float | y, | ||
float | z, | ||
float | w | ||
) |
constructor taking 4 floats
x | x value to init with |
y | y value to init with |
z | z value to init with |
w | w value to init with |
Quaternion | ( | Vector3 | xyz, |
float | w | ||
) |
constructor taking a Vector3 and a scalar float
xyz | the x, y, z values to init with |
w | the w value to init with |
Quaternion | ( | Vector4 | v | ) |
constructor taking a Vector4
v | the vector to init with |
Quaternion Add | ( | Quaternion | q | ) |
return this + q
q | quaternion |
void Add | ( | ref Quaternion | q, |
out Quaternion | result | ||
) |
result = this + q
q | quaternion |
result | this + q |
static Quaternion Add | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
static function equivalent to Add(Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
static void Add | ( | ref Quaternion | q1, |
ref Quaternion | q2, | ||
out Quaternion | result | ||
) | [static] |
static function equivalent to Add(ref Quaternion, out Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
result | q1 + q2 |
float Angle | ( | ref Quaternion | q | ) |
get the angle between this and the input quaternion
q | the quaternion to get the angle to |
static float Angle | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
static function equivalent to Angle(Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
float Angle | ( | Quaternion | q | ) |
get the angle between this and the input quaternion
q | the quaternion to get the angle to |
static float Angle | ( | ref Quaternion | q1, |
ref Quaternion | q2 | ||
) | [static] |
static function equivalent to Angle(ref Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
Quaternion Conjugate | ( | ) |
quaternion conjugate
void Conjugate | ( | out Quaternion | result | ) |
quaternion conjugate
result | quaternion conjugate |
static void Conjugate | ( | ref Quaternion | q, |
out Quaternion | result | ||
) | [static] |
static function equivalent to Conjugate(out Quaternion)
q | quaternion |
result | quaternion conjugate |
static Quaternion Conjugate | ( | Quaternion | q | ) | [static] |
Quaternion Divide | ( | float | f | ) |
return this / f
f | scalar |
static void Divide | ( | ref Quaternion | q, |
float | f, | ||
out Quaternion | result | ||
) | [static] |
static function equivalent to Divide(float, out Quaternion)
q | quaternion |
f | scalar |
result | q / f |
void Divide | ( | float | f, |
out Quaternion | result | ||
) |
result = this / f
f | scalar |
result | this / f |
static Quaternion Divide | ( | Quaternion | q, |
float | f | ||
) | [static] |
float Dot | ( | ref Quaternion | q | ) |
dot product
q | quaternion to take the dot product with |
static float Dot | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
static function equivalent to Dot(Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
static float Dot | ( | ref Quaternion | q1, |
ref Quaternion | q2 | ||
) | [static] |
static function equivalent to Dot(ref Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
float Dot | ( | Quaternion | q | ) |
dot product
q | quaternion to take the dot product with |
bool Equals | ( | Quaternion | q, |
float | epsilon | ||
) |
equality test with an epsilon
q | the quaternion to compare this to |
epsilon | the epsilon to use in comparison |
bool Equals | ( | Quaternion | q | ) |
equality test
q | the quaternion to compare this to |
override bool Equals | ( | Object | o | ) |
equality test
o | the object to compare this to |
Quaternion Exp | ( | ) |
quaternion exp
void Exp | ( | out Quaternion | result | ) |
quaternion exp
result | quaternion exp |
static Quaternion Exp | ( | Quaternion | q | ) | [static] |
static void Exp | ( | ref Quaternion | q, |
out Quaternion | result | ||
) | [static] |
static function equivalent to Exp(out Quaternion)
q | quaternion |
result | quaternion exp |
static Quaternion FromMatrix4 | ( | Matrix4 | m | ) | [static] |
return a quaternion representing a rotation matrix
m | matrix to form the quaternion out of |
static void FromMatrix4 | ( | ref Matrix4 | m, |
out Quaternion | result | ||
) | [static] |
return a quaternion representing a rotation matrix
m | matrix to form the quaternion out of |
result | a quaternion representing a rotation matrix |
override int GetHashCode | ( | ) |
gets the hash code for this vector
Quaternion Inverse | ( | ) |
quaternion inverse
void Inverse | ( | out Quaternion | result | ) |
quaternion inverse
result | quaternion inverse |
static Quaternion Inverse | ( | Quaternion | q | ) | [static] |
static void Inverse | ( | ref Quaternion | q, |
out Quaternion | result | ||
) | [static] |
static function equivalent to Inverse(out Quaternion)
q | quaternion |
result | quaternion inverse |
bool IsIdentity | ( | ) |
test if this is an identity quaternion
bool IsInfinity | ( | ) |
test if any elements of this are Infinity
bool IsNaN | ( | ) |
test if any elements of this are NaN
bool IsUnit | ( | float | epsilon | ) |
test if this is a unit quaternion
epsilon | epsilon used in testing |
static float Length | ( | Quaternion | q | ) | [static] |
static float Length | ( | ref Quaternion | q | ) | [static] |
float Length | ( | ) |
return the length of this quaternion
float LengthSquared | ( | ) |
return the length squared of this quaternion
static float LengthSquared | ( | Quaternion | q | ) | [static] |
static function equivalent to LengthSquared()
q | quaternion |
static float LengthSquared | ( | ref Quaternion | q | ) | [static] |
static function equivalent to LengthSquared()
q | quaternion |
Quaternion Lerp | ( | Quaternion | q, |
float | f | ||
) |
lerp between 2 quaternions
q | second quaternion |
f | lerp amount |
static Quaternion Lerp | ( | Quaternion | q1, |
Quaternion | q2, | ||
float | f | ||
) | [static] |
static function equivalent to Lerp(Quaternion, float)
q1 | quaternion 1 |
q2 | quaternion 2 |
f | lerp amount |
static void Lerp | ( | ref Quaternion | q1, |
ref Quaternion | q2, | ||
float | f, | ||
out Quaternion | result | ||
) | [static] |
static function equivalent to Lerp(ref Quaternion, float, out Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
f | lerp amount |
result | lerp between q1 and q2 |
void Lerp | ( | ref Quaternion | q, |
float | f, | ||
out Quaternion | result | ||
) |
lerp between 2 quaternions
q | second quaternion |
f | lerp amount |
result | lerp between this and q |
void Log | ( | out Quaternion | result | ) |
quaternion log
result | quaternion log |
static Quaternion Log | ( | Quaternion | q | ) | [static] |
static void Log | ( | ref Quaternion | q, |
out Quaternion | result | ||
) | [static] |
static function equivalent to Log(out Quaternion)
q | quaternion |
result | quaternion log |
Quaternion Log | ( | ) |
quaternion log
Quaternion Multiply | ( | Quaternion | q | ) |
return this * q
q | quaternion |
void Multiply | ( | ref Quaternion | q, |
out Quaternion | result | ||
) |
result = this * q
q | quaternion |
result | this * q |
Quaternion Multiply | ( | float | f | ) |
return this * f
f | scalar |
void Multiply | ( | float | f, |
out Quaternion | result | ||
) |
result = this * f
f | scalar |
result | this * f |
static void Multiply | ( | ref Quaternion | q, |
float | f, | ||
out Quaternion | result | ||
) | [static] |
static function equivalent to Multiply(float, out Quaternion)
q | quaternion |
f | scalar |
result | q * f |
static Quaternion Multiply | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
static function equivalent to Multiply(Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
static Quaternion Multiply | ( | Quaternion | q, |
float | f | ||
) | [static] |
static void Multiply | ( | ref Quaternion | q1, |
ref Quaternion | q2, | ||
out Quaternion | result | ||
) | [static] |
static function equivalent to Multiply(ref Quaternion, out Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
result | q1 * q2 |
static Quaternion Negate | ( | Quaternion | q | ) | [static] |
static void Negate | ( | ref Quaternion | q, |
out Quaternion | result | ||
) | [static] |
static function equivalent to Negate(out Quaternion)
q | quaternion |
result | -q |
Quaternion Negate | ( | ) |
return -this
void Negate | ( | out Quaternion | result | ) |
result = -this
result | -this |
Quaternion Normalize | ( | ) |
return a unit quaternion
static Quaternion Normalize | ( | Quaternion | q | ) | [static] |
static void Normalize | ( | ref Quaternion | q, |
out Quaternion | result | ||
) | [static] |
static function equivalent to Normalize(out Quaternion)
q | quaternion |
result | q as a unit quaternion |
void Normalize | ( | out Quaternion | result | ) |
return a unit quaternion
result | this as a unit quaternion |
static bool operator!= | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
not equals operator
q1 | first quaternion to compare |
q2 | second quaternion to compare |
static Quaternion operator* | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
multiplication operator
q1 | first value to multiply |
q2 | second value to multiply |
static Quaternion operator* | ( | float | f, |
Quaternion | q | ||
) | [static] |
multiply a quaternion by a scalar float
f | float to multiply by |
q | quaternion to multiply |
static Quaternion operator* | ( | Quaternion | q, |
float | f | ||
) | [static] |
multiply a quaternion by a scalar float
q | quaternion to multiply |
f | float to multiply by |
static Quaternion operator+ | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
addition operator
q1 | first quaternion to add |
q2 | second quaternion to add |
static Quaternion operator- | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
subtraction operator
q1 | value to subtract from |
q2 | value to subtract |
static Quaternion operator- | ( | Quaternion | q | ) | [static] |
unary minus operator
q | quaternion to negate |
static Quaternion operator/ | ( | Quaternion | q, |
float | f | ||
) | [static] |
division operator
q | quaternion to divide |
f | scalar float value to divide by |
static bool operator== | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
equality operator
q1 | first quaternion to compare |
q2 | second quaternion to compare |
static Quaternion RotationAxis | ( | Vector3 | axis, |
float | angle | ||
) | [static] |
return a quaternion representing a rotation about an arbitrary axis
axis | the axis to rotate about |
angle | the angle to rotate |
static void RotationAxis | ( | ref Vector3 | axis, |
float | angle, | ||
out Quaternion | result | ||
) | [static] |
return a quaternion representing a rotation about an arbitrary axis
axis | the axis to rotate about |
angle | the angle to rotate |
result | a quaternion representing a rotation about an arbitrary axis |
static Quaternion RotationX | ( | float | angle | ) | [static] |
return a quaternion representing a rotation about the x axis
angle | the angle to rotate by |
static void RotationX | ( | float | angle, |
out Quaternion | result | ||
) | [static] |
return a quaternion representing a rotation about the x axis
angle | the angle to rotate by |
result | a quaternion representing a rotation about the x axis |
static Quaternion RotationXyz | ( | float | x, |
float | y, | ||
float | z | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
static void RotationXyz | ( | float | x, |
float | y, | ||
float | z, | ||
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
result | a new quaternion from the three euler angles |
static Quaternion RotationXyz | ( | Vector3 | angles | ) | [static] |
create a new quaternion from three euler angles
angles | the x, y, z euler angles used to create the quaternion |
static void RotationXyz | ( | ref Vector3 | angles, |
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
angles | the x, y, z euler angles used to create the quaternion |
result | a new quaternion from the three euler angles |
static Quaternion RotationXzy | ( | float | x, |
float | y, | ||
float | z | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
static void RotationXzy | ( | float | x, |
float | y, | ||
float | z, | ||
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
result | a new quaternion from the three euler angles |
static void RotationXzy | ( | ref Vector3 | angles, |
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
angles | the x, z, y euler angles used to create the quaternion |
result | a new quaternion from the three euler angles |
static Quaternion RotationXzy | ( | Vector3 | angles | ) | [static] |
create a new quaternion from three euler angles
angles | the x, z, y euler angles used to create the quaternion |
static void RotationY | ( | float | angle, |
out Quaternion | result | ||
) | [static] |
return a quaternion representing a rotation about the y axis
angle | the angle to rotate by |
result | a quaternion representing a rotation about the y axis |
static Quaternion RotationY | ( | float | angle | ) | [static] |
return a quaternion representing a rotation about the y axis
angle | the angle to rotate by |
static void RotationYxz | ( | ref Vector3 | angles, |
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
angles | the y, x, z euler angles used to create the quaternion |
result | a new quaternion from the three euler angles |
static Quaternion RotationYxz | ( | Vector3 | angles | ) | [static] |
create a new quaternion from three euler angles
angles | the y, x, z euler angles used to create the quaternion |
static void RotationYxz | ( | float | x, |
float | y, | ||
float | z, | ||
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
result | a new quaternion from the three euler angles |
static Quaternion RotationYxz | ( | float | x, |
float | y, | ||
float | z | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
static Quaternion RotationYzx | ( | float | x, |
float | y, | ||
float | z | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
static void RotationYzx | ( | float | x, |
float | y, | ||
float | z, | ||
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
result | a new quaternion from the three euler angles |
static void RotationYzx | ( | ref Vector3 | angles, |
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
angles | the y, z, x euler angles used to create the quaternion |
result | a new quaternion from the three euler angles |
static Quaternion RotationYzx | ( | Vector3 | angles | ) | [static] |
create a new quaternion from three euler angles
angles | the y, z, x euler angles used to create the quaternion |
static void RotationZ | ( | float | angle, |
out Quaternion | result | ||
) | [static] |
return a quaternion representing a rotation about the z axis
angle | the angle to rotate by |
result | a quaternion representing a rotation about the z axis |
static Quaternion RotationZ | ( | float | angle | ) | [static] |
return a quaternion representing a rotation about the z axis
angle | the angle to rotate by |
static Quaternion RotationZxy | ( | Vector3 | angles | ) | [static] |
create a new quaternion from three euler angles
angles | the z, x, y euler angles used to create the quaternion |
static Quaternion RotationZxy | ( | float | x, |
float | y, | ||
float | z | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
static void RotationZxy | ( | float | x, |
float | y, | ||
float | z, | ||
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
result | a new quaternion from the three euler angles |
static void RotationZxy | ( | ref Vector3 | angles, |
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
angles | the z, x, y euler angles used to create the quaternion |
result | a new quaternion from the three euler angles |
static Quaternion RotationZyx | ( | float | x, |
float | y, | ||
float | z | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
static Quaternion RotationZyx | ( | Vector3 | angles | ) | [static] |
create a new quaternion from three euler angles
angles | the z, y, x euler angles used to create the quaternion |
static void RotationZyx | ( | float | x, |
float | y, | ||
float | z, | ||
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
x | x angle |
y | y angle |
z | z angle |
result | a new quaternion from the three euler angles |
static void RotationZyx | ( | ref Vector3 | angles, |
out Quaternion | result | ||
) | [static] |
create a new quaternion from three euler angles
angles | the z, y, x euler angles used to create the quaternion |
result | a new quaternion from the three euler angles |
static void Slerp | ( | ref Quaternion | q1, |
ref Quaternion | q2, | ||
float | f, | ||
out Quaternion | result | ||
) | [static] |
static function equivalent to Slerp(ref Quaternion, float, out Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
f | slerp amount |
result | slerp between q1 and q2 |
Quaternion Slerp | ( | Quaternion | q, |
float | f | ||
) |
slerp between 2 quaternions
q | second quaternion |
f | slerp amount |
static Quaternion Slerp | ( | Quaternion | q1, |
Quaternion | q2, | ||
float | f | ||
) | [static] |
static function equivalent to Slerp(Quaternion, float)
q1 | quaternion 1 |
q2 | quaternion 2 |
f | slerp amount |
void Slerp | ( | ref Quaternion | q, |
float | f, | ||
out Quaternion | result | ||
) |
slerp between 2 quaternions
q | second quaternion |
f | slerp amount |
result | slerp between this and q |
Quaternion Subtract | ( | Quaternion | q | ) |
return this - q
q | quaternion |
static Quaternion Subtract | ( | Quaternion | q1, |
Quaternion | q2 | ||
) | [static] |
static function equivalent to Subtract(Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
void Subtract | ( | ref Quaternion | q, |
out Quaternion | result | ||
) |
result = this - q
q | quaternion |
result | this - q |
static void Subtract | ( | ref Quaternion | q1, |
ref Quaternion | q2, | ||
out Quaternion | result | ||
) | [static] |
static function equivalent to Subtract(ref Quaternion, out Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
result | q1 - q2 |
void ToAxisAngle | ( | out Vector3 | axis, |
out float | angle | ||
) |
extract the rotation axis and angle from this quaternion
axis | the rotation axis |
angle | the rotation angle |
void ToMatrix4 | ( | out Matrix4 | result | ) |
Matrix4 ToMatrix4 | ( | ) |
override string ToString | ( | ) |
get the string representation of this quaternion
void ToVector4 | ( | out Vector4 | result | ) |
static void Transform | ( | ref Quaternion | q, |
ref Vector4 | v, | ||
out Vector4 | result | ||
) | [static] |
static function equivalent to Transform(ref Vector4, out Vector4)
q | quaternion |
v | vector |
result | q * v |
static void Transform | ( | ref Quaternion | q, |
ref Vector3 | v, | ||
out Vector3 | result | ||
) | [static] |
static function equivalent to Transform(ref Vector3, out Vector3)
q | quaternion |
v | vector |
result | q * v |
result = this * v
v | vector |
result | this * v |
static Vector3 Transform | ( | Quaternion | q, |
Vector3 | v | ||
) | [static] |
result = this * v
v | vector |
result | this * v |
result = this * v
v | vector |
result | this * v |
static void Transform | ( | ref Quaternion | q, |
ref Vector2 | v, | ||
out Vector2 | result | ||
) | [static] |
static function equivalent to Transform(ref Vector2, out Vector2)
q | quaternion |
v | vector |
result | q * v |
static Vector2 Transform | ( | Quaternion | q, |
Vector2 | v | ||
) | [static] |
static Vector4 Transform | ( | Quaternion | q, |
Vector4 | v | ||
) | [static] |
static Quaternion TurnTo | ( | Quaternion | q1, |
Quaternion | q2, | ||
float | angle | ||
) | [static] |
static function equivalent to TurnTo(Quaternion, float)
q1 | quaternion 1 |
q2 | quaternion 2 |
angle | step angle |
Quaternion TurnTo | ( | Quaternion | q, |
float | angle | ||
) |
turn to target quaternion by specified angle
q | target quaternion |
angle | step angle |
static void TurnTo | ( | ref Quaternion | q1, |
ref Quaternion | q2, | ||
float | angle, | ||
out Quaternion | result | ||
) | [static] |
static function equivalent to TurnTo(ref Quaternion, float, out Quaternion)
q1 | quaternion 1 |
q2 | quaternion 2 |
angle | step angle |
result | a new quaternion turned to target quaternion by specified angle |
void TurnTo | ( | ref Quaternion | q, |
float | angle, | ||
out Quaternion | result | ||
) |
turn to target quaternion by specified angle
q | target quaternion |
angle | step angle |
result | a new quaternion turned to target quaternion by specified angle |
readonly Quaternion Identity = new Quaternion(0.0f, 0.0f, 0.0f, 1.0f) [static] |
identity quaternion
float W |
W.
float X |
X.
float Y |
Y.
float Z |
Z.