Announcement

Collapse
No announcement yet.

Quaternion FQuat::Inverse is actually the conjugate?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Ah, dam, sure thing. Neat optimization.

    Leave a comment:


  • replied
    The inverse of a quaternion is it's conjugate divided by it's length. The length is 1 if it's normalized, so in this case it's simply the conjugate.

    Leave a comment:


  • Quaternion FQuat::Inverse is actually the conjugate?

    By trying to solve another problem, I'm trying to understand quaternions. But unreals function definition is just confusing in that regard.

    Code:
    FORCEINLINE FQuat FQuat::Inverse() const
    {
    checkSlow(IsNormalized());
    
    return FQuat(-X, -Y, -Z, W);
    }
    According to https://www.euclideanspace.com/maths...ions/index.htm and multiple other sources, the function actually calculates the conjucate of a quaternion, not the inverse.
Working...
X