radius

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

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

Note: The use of sp/dp in this context should be replaced by TypedValue.applyDimension for the View System.

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

OBS: O uso de sp/dp neste contexto deve ser substituído por TypedValue.applyDimension para View System.