Skip to content
  • Christoph Haag's avatar
    st/oxr: Ensure quaternion is normalized in xrLocateViews() · 7a1dbbe8
    Christoph Haag authored
    In rare cases the state tracker's pose transformations resulted in a quaternion
    that accumulated float precision errors such that the norm of the quaternion was
    not within float precision of 1.0 anymore.
    
    Introduce a function math_quat_ensure_normalized() that can be used after multiple
    operations have been performed on a quaternion.
    7a1dbbe8