Package org.joml
Class QuaterniondInterpolator
java.lang.Object
org.joml.QuaterniondInterpolator
Computes the weighted average of multiple rotations represented as
Quaterniond instances.
Instances of this class are not thread-safe.
- Author:
- Kai Burjack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeWeightedAverage(Quaterniond[] qs, double[] weights, int maxSvdIterations, Quaterniond dest) Compute the weighted average of all of the quaternions given inqsusing the specified interpolation factorsweights, and store the result indest.
-
Constructor Details
-
QuaterniondInterpolator
public QuaterniondInterpolator()
-
-
Method Details
-
computeWeightedAverage
public Quaterniond computeWeightedAverage(Quaterniond[] qs, double[] weights, int maxSvdIterations, Quaterniond dest) Compute the weighted average of all of the quaternions given inqsusing the specified interpolation factorsweights, and store the result indest.- Parameters:
qs- the quaternions to interpolate overweights- the weights of each individual quaternion inqsmaxSvdIterations- the maximum number of iterations in the Singular Value Decomposition step used by this methoddest- will hold the result- Returns:
- dest
-