Class FbxQuaternionTest | Autodesk FBX SDK | 3.0.1-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class FbxQuaternionTest

    Inheritance
    Object
    FbxQuaternionTest
    Namespace: Autodesk.Fbx.UnitTests
    Syntax
    public class FbxQuaternionTest

    Methods

    AssertSimilar(FbxQuaternion, FbxQuaternion, Double, Boolean)

    Check that two quaternions represent a similar rotation.

    Either they're equal (within tolerance) or they're exactly opposite. Note that a slerp will go opposite directions if they're opposite.

    If you want to use the boolean result, pass in 'nothrow' as true. Otherwise a failed comparision will throw an exception.

    Declaration
    public static bool AssertSimilar(FbxQuaternion expected, FbxQuaternion actual, double tolerance = 1E-10, bool nothrow = false)
    Parameters
    Type Name Description
    FbxQuaternion expected
    FbxQuaternion actual
    Double tolerance
    Boolean nothrow
    Returns
    Type Description
    Boolean

    AssertSimilar(FbxVector4, FbxQuaternion, Double, Boolean)

    Declaration
    public static bool AssertSimilar(FbxVector4 euler, FbxQuaternion actual, double tolerance = 1E-10, bool nothrow = false)
    Parameters
    Type Name Description
    FbxVector4 euler
    FbxQuaternion actual
    Double tolerance
    Boolean nothrow
    Returns
    Type Description
    Boolean

    BasicTests()

    Declaration
    public void BasicTests()

    TestEquality()

    Declaration
    public void TestEquality()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023