SpatialAlignment.Depth

interface SpatialAlignment.Depth
Known direct subclasses
SpatialBiasAlignment.Depth

Creates a weighted alignment that specifies a depth bias.


An interface to calculate the position of a box of a certain depth inside an available depth.

Summary

Public functions

Int
offset(depth: Int, space: Int)

Provides the depth offset from the origin of the space to the origin of the content.

Public functions

offset

Added in 1.0.0-alpha04
fun offset(depth: Int, space: Int): Int

Provides the depth offset from the origin of the space to the origin of the content.

Parameters
depth: Int

The content depth in pixels.

space: Int

The available space in pixels.

See also
depthOffset