|
| | quaternionD (double x, double y, double z, double w) |
| | Constructs a quaternion from four double values.
|
| |
| | quaternionD (double4 value) |
| | Constructs a quaternion from double4 vector.
|
| |
| override string | ToString () |
| | Returns a string representation of the quaternion.
|
| |
| string | ToString (string format, IFormatProvider formatProvider) |
| | Returns a string representation of the quaternion using a specified format and culture-specific format information.
|
| |
|
| static quaternionD | AxisAngle (double3 axis, double angle) |
| | Returns a quaternion representing a rotation around a unit axis by an angle in radians. The rotation direction is clockwise when looking along the rotation axis towards the origin.
|
| |
|
static quaternionD | FromToRotation (double3 from, double3 to) |
| |
| static double3 | mul (quaternionD q, double3 v) |
| | Returns the result of transforming a vector by a quaternion.
|
| |
| static quaternionD | Normalize (quaternionD q) |
| | Returns a normalized version of a quaternion q by scaling it by 1 / length(q).
|
| |
| static implicit | operator quaternionD (double4 v) |
| | Implicitly converts a double4 vector to a quaternion.
|
| |
|
|
double4 | value |
| | The quaternion component values.
|
| |
|
|
static readonly quaternionD | identity = new quaternionD(0.0f, 0.0f, 0.0f, 1.0f) |
| | A quaternion representing the identity transform.
|
| |
◆ quaternionD() [1/2]
| GravityEngine2.quaternionD.quaternionD |
( |
double | x, |
|
|
double | y, |
|
|
double | z, |
|
|
double | w ) |
Constructs a quaternion from four double values.
- Parameters
-
| x | The quaternion x component. |
| y | The quaternion y component. |
| z | The quaternion z component. |
| w | The quaternion w component. |
◆ quaternionD() [2/2]
| GravityEngine2.quaternionD.quaternionD |
( |
double4 | value | ) |
|
Constructs a quaternion from double4 vector.
- Parameters
-
| value | The quaternion xyzw component values. |
◆ AxisAngle()
| static quaternionD GravityEngine2.quaternionD.AxisAngle |
( |
double3 | axis, |
|
|
double | angle ) |
|
static |
Returns a quaternion representing a rotation around a unit axis by an angle in radians. The rotation direction is clockwise when looking along the rotation axis towards the origin.
- Parameters
-
| axis | The axis of rotation. |
| angle | The angle of rotation in radians. |
- Returns
- The quaternion representing a rotation around an axis.
◆ mul()
| static double3 GravityEngine2.quaternionD.mul |
( |
quaternionD | q, |
|
|
double3 | v ) |
|
static |
Returns the result of transforming a vector by a quaternion.
- Parameters
-
| q | The quaternion transformation. |
| v | The vector to transform. |
- Returns
- The transformation of vector v by quaternion q.
◆ Normalize()
Returns a normalized version of a quaternion q by scaling it by 1 / length(q).
- Parameters
-
| q | The quaternion to normalize. |
- Returns
- The normalized quaternion.
◆ operator quaternionD()
| static implicit GravityEngine2.quaternionD.operator quaternionD |
( |
double4 | v | ) |
|
|
static |
Implicitly converts a double4 vector to a quaternion.
- Parameters
-
| v | The quaternion xyzw component values. |
- Returns
- The quaternion constructed from a double4 vector.
◆ ToString() [1/2]
| override string GravityEngine2.quaternionD.ToString |
( |
| ) |
|
Returns a string representation of the quaternion.
- Returns
- The string representation of the quaternion.
◆ ToString() [2/2]
| string GravityEngine2.quaternionD.ToString |
( |
string | format, |
|
|
IFormatProvider | formatProvider ) |
Returns a string representation of the quaternion using a specified format and culture-specific format information.
- Parameters
-
| format | The format string. |
| formatProvider | The format provider to use during string formatting. |
- Returns
- The formatted string representation of the quaternion.
The documentation for this struct was generated from the following file:
- ge2/GE2/Assets/GravityEngine2/Runtime/Math/quaternionD.cs