Skip to content

Commit

Permalink
Update order of fields based on natural order
Browse files Browse the repository at this point in the history
Now we start with the most basic value, moving to the ones that are
computed based on the more basic ones.
  • Loading branch information
hannobraun committed Aug 12, 2024
1 parent 8c78e35 commit e7e500b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/fj-core/src/validation/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ pub struct ValidationConfig {
/// The tolerance value used for intermediate geometry representation
pub tolerance: Tolerance,

/// The minimum distance between distinct objects
///
/// Objects whose distance is less than the value defined in this field, are
/// considered identical.
pub distinct_min_distance: Scalar,

/// The maximum distance between identical objects
///
/// Objects that are considered identical might still have a distance
/// between them, due to inaccuracies of the numerical representation. If
/// that distance is less than the one defined in this field, can not be
/// considered identical.
pub identical_max_distance: Scalar,

/// The minimum distance between distinct objects
///
/// Objects whose distance is less than the value defined in this field, are
/// considered identical.
pub distinct_min_distance: Scalar,
}

impl ValidationConfig {
Expand All @@ -58,8 +58,8 @@ impl ValidationConfig {
Self {
panic_on_error: false,
tolerance,
distinct_min_distance,
identical_max_distance,
distinct_min_distance,
}
}
}
Expand Down

0 comments on commit e7e500b

Please sign in to comment.