Quaterniond.rotationTo

Set <code>this</code> quaternion to a rotation that rotates the <code>fromDir</code> vector to point along <code>toDir</code>. <p> Because there can be multiple possible rotations, this method chooses the one with the shortest arc.

@see #rotationTo(double, double, double, double, double, double)

@param fromDir the starting direction @param toDir the destination direction @return this

  1. Quaterniond rotationTo(double fromDirX, double fromDirY, double fromDirZ, double toDirX, double toDirY, double toDirZ)
  2. Quaterniond rotationTo(Vector3d fromDir, Vector3d toDir)
    struct Quaterniond
    ref public return
    rotationTo

Meta