EasingFunction.StepPosition


public final class EasingFunction.StepPosition


Setting to determine the desired output value of the first and last step of [0, 1) for EasingFunction.Steps.

Summary

Public fields

static final @NonNull EasingFunction.StepPosition

The step function "jumps" at both the start and the end: For x in [0, 1/step_count) => y = 1/(step_count + 1).

static final @NonNull EasingFunction.StepPosition

The step function "jumps" at the end of [0, 1): For x in [0, 1/step_count) => y = 0.

static final @NonNull EasingFunction.StepPosition

The step function does not "jump" at either boundary: For x in [0, 1/step_count) => y = 0.

static final @NonNull EasingFunction.StepPosition

The step function "jumps" at the start of [0, 1): For x in [0, 1/step_count) => y = 1/step_count.

Public methods

@NonNull String

Public fields

JUMP_BOTH

public static final @NonNull EasingFunction.StepPosition JUMP_BOTH

The step function "jumps" at both the start and the end: For x in [0, 1/step_count) => y = 1/(step_count + 1). For x in [1 - 1/step_count, 1) => y = 1 - 1/(step_count + 1).

JUMP_END

public static final @NonNull EasingFunction.StepPosition JUMP_END

The step function "jumps" at the end of [0, 1): For x in [0, 1/step_count) => y = 0. For x in [1 - 1/step_count, 1) => y = 1 - 1/step_count.

JUMP_NONE

public static final @NonNull EasingFunction.StepPosition JUMP_NONE

The step function does not "jump" at either boundary: For x in [0, 1/step_count) => y = 0. For x in [1 - 1/step_count, 1) => y = 1.

JUMP_START

public static final @NonNull EasingFunction.StepPosition JUMP_START

The step function "jumps" at the start of [0, 1): For x in [0, 1/step_count) => y = 1/step_count. For x in [1 - 1/step_count, 1) => y = 1.

Public methods

toString

public @NonNull String toString()