QuaternionExtensions.AlignedEnough(Quaternion, Quaternion, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.