Measurement

class Measurement(val dist: Float, val fitRatio: Float, val max: Int, val min: Int, val type: AiutaSizeFitRecommendation.Size.Measurement.MeasurementType)

Represents detailed measurement information for a specific size.

This class provides information about the measurement range (min-max) and how the user's body measurement compares to this range.

Constructors

Link copied to clipboard
constructor(dist: Float, fitRatio: Float, max: Int, min: Int, type: AiutaSizeFitRecommendation.Size.Measurement.MeasurementType)

Properties

Link copied to clipboard
val dist: Float

Distance from the user's body measurement to the midpoint of the size's measurement range (in centimeters). Negative values indicate the user's measurement is below the midpoint, positive values indicate it's above.

Link copied to clipboard

Value obtained by dividing the distance by the range of the size. This ratio indicates how well the size fits: - Values close to 0 indicate a good fit - Negative values indicate the user's measurement is below the range - Positive values indicate the user's measurement is above the range

Link copied to clipboard
val max: Int

Maximum value of the measurement range in centimeters

Link copied to clipboard
val min: Int

Minimum value of the measurement range in centimeters

Link copied to clipboard

The type of measurement (e.g., "chest_c", "waist_c", "hip_c")