Function

Velocity

Constructs an Velocity from the given relative x and y velocities.

Velocity

Source set: Common
@Stable public fun Velocity(x: Float, y: Float): Velocity

Constructs an Velocity from the given relative x and y velocities.

Parameters

x Horizontal component of the velocity in pixels per second
y Vertical component of the velocity in pixels per second
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: