Package org.joml

Class QuaternionfInterpolator


  • public class QuaternionfInterpolator
    extends java.lang.Object
    Computes the weighted average of multiple rotations represented as Quaternionf instances.

    Instances of this class are not thread-safe.

    Author:
    Kai Burjack
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Quaternionf computeWeightedAverage​(Quaternionfc[] qs, float[] weights, int maxSvdIterations, Quaternionf dest)
      Compute the weighted average of all of the quaternions given in qs using the specified interpolation factors weights, and store the result in dest.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QuaternionfInterpolator

        public QuaternionfInterpolator()
    • Method Detail

      • computeWeightedAverage

        public Quaternionf computeWeightedAverage​(Quaternionfc[] qs,
                                                  float[] weights,
                                                  int maxSvdIterations,
                                                  Quaternionf dest)
        Compute the weighted average of all of the quaternions given in qs using the specified interpolation factors weights, and store the result in dest.
        Parameters:
        qs - the quaternions to interpolate over
        weights - the weights of each individual quaternion in qs
        maxSvdIterations - the maximum number of iterations in the Singular Value Decomposition step used by this method
        dest - will hold the result
        Returns:
        dest