Skip to main content

compare

Function compare 

Source
pub fn compare(
    model: &Model,
    quantity: &Quantity,
    computed: &ComputedQuantity,
    tolerance: Tolerance,
) -> Comparison
Expand description

Compare one authored quantity against a computed value.

Only a Quantity::Simple is compared, and only against a computed value of the same QuantityKind. An IFC4X3 IfcQuantityNumber (QuantityKind::Number) is compared like the others: against a computed Number, with a stated unit matched textually and no unit assumed when it states none. It has no >= 0 rule, so a negative number compares as it is.