{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class VelocityKt
static final @NonNull Velocity
Velocity(float x, float y)
Constructs an Velocity from the given relative x and y velocities.
public static final @NonNull Velocity Velocity(float x, float y)
float x
Horizontal component of the velocity in pixels per second
float y
Vertical component of the velocity in pixels per second