QuaternionEvaluator
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
QuaternionEvaluator is a type evaluator specifically designed for animating rotations using Quaternions in Sceneform.
It provides a method, evaluate, to calculate intermediate Quaternion values for smooth transitions between a starting and ending rotation.
This class inherits from java.lang.Object and implements android.animation.TypeEvaluator, providing standard object functionalities and type evaluation capabilities.
Developers can use QuaternionEvaluator to create seamless and realistic rotation animations within their AR experiences.
public class
QuaternionEvaluator
TypeEvaluator for Quaternions. Used to animate rotations.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[],["`QuaternionEvaluator` animates rotations using Quaternions. It has a constructor `QuaternionEvaluator()` and an `evaluate` method. `evaluate` takes a float `fraction`, a `startValue` Quaternion, and an `endValue` Quaternion, returning a Quaternion. Inherited methods from `java.lang.Object` manage object behavior, while methods from `android.animation.TypeEvaluator` also includes an abstract `evaluate` method that uses `fraction`, and `startValue`, `endValue` to return a Quaternion.\n"]]