編集

次の方法で共有


QuaternionExtensions.AlignedEnough(Quaternion, Quaternion, Single) Method

Definition

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

public:
 static bool AlignedEnough(UnityEngine::Quaternion q1, UnityEngine::Quaternion q2, float angleTolerance);
public static bool AlignedEnough (UnityEngine.Quaternion q1, UnityEngine.Quaternion q2, float angleTolerance);
static member AlignedEnough : UnityEngine.Quaternion * UnityEngine.Quaternion * single -> bool
Public Function AlignedEnough (q1 As Quaternion, q2 As Quaternion, angleTolerance As Single) As Boolean

Parameters

q1
UnityEngine.Quaternion

The first quaternion.

q2
UnityEngine.Quaternion

The second quaternion.

angleTolerance
Single

The maximum angle that will cause this to return true.

Returns

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

Applies to