AspectRatio

class AspectRatio(val width: Int, val height: Int)(source)

An aspect ratio.

The companion holds the common ones, and any other pair of sides is valid.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val height: Int

The height side of the ratio.

Link copied to clipboard

Width over height, as a float.

Link copied to clipboard
val width: Int

The width side of the ratio.