Package org.joml
Class QuaternionfInterpolator
- java.lang.Object
-
- org.joml.QuaternionfInterpolator
-
public class QuaternionfInterpolator extends java.lang.Object
Computes the weighted average of multiple rotations represented asQuaternionf
instances.Instances of this class are not thread-safe.
- Author:
- Kai Burjack
-
-
Constructor Summary
Constructors Constructor Description QuaternionfInterpolator()
-
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 inqs
using the specified interpolation factorsweights
, and store the result indest
.
-
-
-
Method Detail
-
computeWeightedAverage
public Quaternionf computeWeightedAverage(Quaternionfc[] qs, float[] weights, int maxSvdIterations, Quaternionf dest)
Compute the weighted average of all of the quaternions given inqs
using the specified interpolation factorsweights
, and store the result indest
.- Parameters:
qs
- the quaternions to interpolate overweights
- the weights of each individual quaternion inqs
maxSvdIterations
- the maximum number of iterations in the Singular Value Decomposition step used by this methoddest
- will hold the result- Returns:
- dest
-
-