Ratio

data class Ratio(val tenth: Float = 0.1f, val fifth: Float = 0.2f, val quarter: Float = 0.25f, val trenth: Float = 0.3f, val third: Float = 0.33f, val tetrenth: Float = 0.4f, val half: Float = 0.5f, val hexenth: Float = 0.6f, val twothirds: Float = 0.66f, val septenth: Float = 0.7f, val triquarts: Float = 0.75f, val octenth: Float = 0.8f, val nonenth: Float = 0.9f)

Names for some common fractions between 0 and 1.

Ratios for tenths, fourths, thirds, and half are defined. Values for tenths take the form: Latin/Greek prefix + "enth".

Constructors

Link copied to clipboard
constructor(tenth: Float = 0.1f, fifth: Float = 0.2f, quarter: Float = 0.25f, trenth: Float = 0.3f, third: Float = 0.33f, tetrenth: Float = 0.4f, half: Float = 0.5f, hexenth: Float = 0.6f, twothirds: Float = 0.66f, septenth: Float = 0.7f, triquarts: Float = 0.75f, octenth: Float = 0.8f, nonenth: Float = 0.9f)

Properties

Link copied to clipboard
val fifth: Float = 0.2f
Link copied to clipboard
val half: Float = 0.5f
Link copied to clipboard
val hexenth: Float = 0.6f
Link copied to clipboard
val nonenth: Float = 0.9f
Link copied to clipboard
val octenth: Float = 0.8f
Link copied to clipboard
val quarter: Float = 0.25f
Link copied to clipboard
val septenth: Float = 0.7f
Link copied to clipboard
val tenth: Float = 0.1f
Link copied to clipboard
val tetrenth: Float = 0.4f
Link copied to clipboard
val third: Float = 0.33f
Link copied to clipboard
val trenth: Float = 0.3f
Link copied to clipboard
val triquarts: Float = 0.75f
Link copied to clipboard
val twothirds: Float = 0.66f