日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class QuaternionExtensions

    Extension methods for Unity's Quaternion struct.

    Inheritance
    Object
    QuaternionExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public static class QuaternionExtensions

    Methods

    AlignedEnough(Quaternion, Quaternion, Single)

    Determines if the angle between two quaternions is within a given tolerance.

    Declaration
    public static bool AlignedEnough(Quaternion q1, Quaternion q2, float angleTolerance)
    Parameters
    Type Name Description
    Quaternion q1

    The first quaternion.

    Quaternion q2

    The second quaternion.

    Single angleTolerance

    The maximum angle that will cause this to return true.

    Returns
    Type Description
    Boolean

    True if the quaternions are aligned within the tolerance, false otherwise.

    IsValidRotation(Quaternion)

    Declaration
    public static bool IsValidRotation(this Quaternion rotation)
    Parameters
    Type Name Description
    Quaternion rotation
    Returns
    Type Description
    Boolean
    Back to top Generated by DocFX