SCNQuaternion Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a Quaternion.
[System.Serializable]
public struct SCNQuaternion : IEquatable<SceneKit.SCNQuaternion>
[<System.Serializable>]
type SCNQuaternion = struct
- Inheritance
-
SCNQuaternion
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| SCNQuaternion(NFloat, NFloat, NFloat, NFloat) |
Construct a new SCNQuaternion |
| SCNQuaternion(Quaternion) | |
| SCNQuaternion(RMatrix3) | |
| SCNQuaternion(SCNVector3, NFloat) |
Construct a new SCNQuaternion from vector and w components |
| SCNQuaternion(SCNVector3, Single) |
Construct a new SCNQuaternion from vector and w components |
| SCNQuaternion(Single, Single, Single, Single) |
Construct a new SCNQuaternion |
Fields
| Name | Description |
|---|---|
| Identity |
Defines the identity quaternion. |
Properties
| Name | Description |
|---|---|
| Length |
Gets the length (magnitude) of the quaternion. |
| LengthSquared |
Gets the square of the quaternion length (magnitude). |
| W |
Gets or sets the W component of this instance. |
| X |
Gets or sets the X component of this instance. |
| Xyz |
Gets or sets an OpenTK.Vector3 with the X, Y and Z components of this instance. |
| Y |
Gets or sets the Y component of this instance. |
| Z |
Gets or sets the Z component of this instance. |
Methods
| Name | Description |
|---|---|
| Add(SCNQuaternion, SCNQuaternion, SCNQuaternion) |
Add two quaternions |
| Add(SCNQuaternion, SCNQuaternion) |
Add two quaternions |
| Conjugate() |
Convert this quaternion to its conjugate |
| Conjugate(SCNQuaternion, SCNQuaternion) |
Get the conjugate of the given quaternion |
| Conjugate(SCNQuaternion) |
Get the conjugate of the given quaternion |
| Equals(Object) |
Compares this object instance to another object for equality. |
| Equals(SCNQuaternion) |
Compares this SCNQuaternion instance to another SCNQuaternion for equality. |
| FromAxisAngle(SCNVector3, Single) |
Build a quaternion from the given axis and angle |
| GetHashCode() |
Provides the hash code for this object. |
| Invert(SCNQuaternion, SCNQuaternion) |
Get the inverse of the given quaternion |
| Invert(SCNQuaternion) |
Get the inverse of the given quaternion |
| Multiply(SCNQuaternion, SCNQuaternion, SCNQuaternion) |
Multiplies two instances. |
| Multiply(SCNQuaternion, SCNQuaternion) |
Multiplies two instances. |
| Multiply(SCNQuaternion, Single, SCNQuaternion) |
Multiplies an instance by a scalar. |
| Multiply(SCNQuaternion, Single) |
Multiplies an instance by a scalar. |
| Normalize() |
Scales the Quaternion to unit length. |
| Normalize(SCNQuaternion, SCNQuaternion) |
Scale the given quaternion to unit length |
| Normalize(SCNQuaternion) |
Scale the given quaternion to unit length |
| Slerp(SCNQuaternion, SCNQuaternion, Single) |
Do Spherical linear interpolation between two quaternions |
| Sub(SCNQuaternion, SCNQuaternion, SCNQuaternion) |
Subtracts two instances. |
| Sub(SCNQuaternion, SCNQuaternion) |
Subtracts two instances. |
| ToAxisAngle() |
Convert this instance to an axis-angle representation. |
| ToAxisAngle(SCNVector3, NFloat) |
Convert the current quaternion to axis angle representation |
| ToAxisAngle(SCNVector3, Single) |
Convert the current quaternion to axis angle representation |
| ToString() |
Returns a System.String that represents the current Quaternion. |
Operators
| Name | Description |
|---|---|
| Addition(SCNQuaternion, SCNQuaternion) |
Adds two instances. |
| Equality(SCNQuaternion, SCNQuaternion) |
Compares two instances for equality. |
| Inequality(SCNQuaternion, SCNQuaternion) |
Compares two instances for inequality. |
| Multiply(SCNQuaternion, SCNQuaternion) |
Multiplies two instances. |
| Multiply(SCNQuaternion, Single) |
Multiplies an instance by a scalar. |
| Multiply(Single, SCNQuaternion) |
Multiplies an instance by a scalar. |
| Subtraction(SCNQuaternion, SCNQuaternion) |
Subtracts two instances. |