cassowary::strength

Function create

Source
pub fn create(a: f64, b: f64, c: f64, w: f64) -> f64
Expand description

Create a constraint as a linear combination of STRONG, MEDIUM and WEAK strengths, corresponding to a b and c respectively. The result is further multiplied by w.