ScalarKeyframe (API Reference)
Package com.here.sdk.animation
Class ScalarKeyframe
java.lang.Object
com.here.sdk.animation.ScalarKeyframe
A ScalarKeyframe consists of a scalar value (e.g,: distance in meters) and an animation duration.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScalarKeyframe(double value, Duration duration) Constructs a ScalarKeyframe from the value and offset. -
Method Summary
-
Field Details
-
value
public final double valueScalar keyframe value.
-
duration
Relative animation duration for reaching the keyframe value from previous keyframe value. Negative duration value gets clamped to 0.
-
-
Constructor Details
-
ScalarKeyframe
Constructs a ScalarKeyframe from the value and offset.
- Parameters:
value-Scalar keyframe value.
duration-Relative animation duration for reaching the keyframe value. Negative duration value gets clamped to 0.
-
-
Method Details