Constant SQUARE_RELATIVE_EPSILON

Source
pub const SQUARE_RELATIVE_EPSILON: f64 = 1.0e-6;
Expand description

Maximum relative width/height delta treated as numerically square.

Validation computes abs(width - height) / max(width, height) in f64 and rejects only values strictly greater than 1e-6.

ยงExamples

use ailloli_ui_icon::SQUARE_RELATIVE_EPSILON;
assert_eq!(SQUARE_RELATIVE_EPSILON, 0.000_001);