radius

fun radius(diameter: Float, type: UnitType, resources: Resources): Float

EN Converts a diameter value in a specific physical unit to Radius in Pixels (PX).

PT Converte um valor de diâmetro em uma unidade física específica para Raio em Pixels (PX).


fun Float.radius(type: UnitType): Float

EN Float extension to calculate the Radius in Pixels (PX).

PT Extensão de Float para calcular o Raio em Pixels (PX).


fun Int.radius(type: UnitType): Float

EN Int extension to calculate the Radius in Pixels (PX).

PT Extensão de Int para calcular o Raio em Pixels (PX).