Class ScalarKeyframe

java.lang.Object
com.here.sdk.animation.ScalarKeyframe

public final class ScalarKeyframe extends Object

A ScalarKeyframe consists of a scalar value (e.g,: distance in meters) and an animation duration.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Duration
    Relative animation duration for reaching the keyframe value from previous keyframe value.
    final double
    Scalar keyframe value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScalarKeyframe(double value, Duration duration)
    Constructs a ScalarKeyframe from the value and offset.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      public final double value

      Scalar keyframe value.

    • duration

      @NonNull public final Duration duration

      Relative animation duration for reaching the keyframe value from previous keyframe value. Negative duration value gets clamped to 0.

  • Constructor Details

    • ScalarKeyframe

      public ScalarKeyframe(double value, @NonNull Duration duration)

      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