Velocity

data class Velocity
kotlin.Any
   ↳ androidx.ui.core.Velocity

A velocity in two dimensions.

Summary

Public constructors

<init>(pixelsPerSecond: PxPosition)

A velocity in two dimensions.

Public methods

operator Velocity

Return the negation of a velocity.

Extension functions

From androidx.ui.core
operator Velocity

Return the difference of two velocities.

operator Velocity

Return the sum of two velocities.

Properties

PxPosition

The number of pixels per second of velocity in the x and y directions.

Companion properties

Velocity

Velocity of 0 pixels per second in both x and y.

Public constructors

<init>

Velocity(pixelsPerSecond: PxPosition)

A velocity in two dimensions.

Public methods

unaryMinus

operator fun unaryMinus(): Velocity

Return the negation of a velocity.

Properties

pixelsPerSecond

val pixelsPerSecond: PxPosition

The number of pixels per second of velocity in the x and y directions.

Companion properties

Zero

val Zero: Velocity

Velocity of 0 pixels per second in both x and y.