Struct XbimQuaternion
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Xbim.Common.Geometry
Assembly: Xbim.Common.dll
Syntax
public struct XbimQuaternion
Constructors
| Improve this Doc View SourceXbimQuaternion(Double, Double, Double, Double)
Declaration
public XbimQuaternion(double x, double y, double z, double w)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double | y | |
System.Double | z | |
System.Double | w |
Properties
| Improve this Doc View SourceW
Declaration
public double W { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
X
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Z
Declaration
public double Z { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceIsIdentity()
Declaration
public bool IsIdentity()
Returns
Type | Description |
---|---|
System.Boolean |
RotationMatrix(ref XbimMatrix3D, out XbimQuaternion)
Creates a quaternion given a rotation matrix.
Declaration
public static void RotationMatrix(ref XbimMatrix3D matrix, out XbimQuaternion result)
Parameters
Type | Name | Description |
---|---|---|
XbimMatrix3D | matrix | The rotation matrix. |
XbimQuaternion | result | When the method completes, contains the newly created quaternion. |
Transform(ref XbimVector3D, ref XbimQuaternion, out XbimVector3D)
Transforms a 3D vector by the given rotation.
Declaration
public static void Transform(ref XbimVector3D vector, ref XbimQuaternion rotation, out XbimVector3D result)
Parameters
Type | Name | Description |
---|---|---|
XbimVector3D | vector | The vector to rotate. |
XbimQuaternion | rotation | The rotation to apply. |
XbimVector3D | result | When the method completes, contains the transformed . |