Search Results for

    Show / Hide Table of Contents

    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 Source

    XbimQuaternion(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 Source

    W

    Declaration
    public double W { get; set; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    X

    Declaration
    public double X { get; set; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Y

    Declaration
    public double Y { get; set; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Z

    Declaration
    public double Z { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    | Improve this Doc View Source

    IsIdentity()

    Declaration
    public bool IsIdentity()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 .

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim