pub struct Tolerance { /* private fields */ }Expand description
Coordinate vocabulary, re-exported from axiolid-core.
These are the same types, not copies: a consumer of the narrow linear closure should not need a second dependency to name a point. Linear and angular tolerance carried with an operation.
There is deliberately no Default implementation: a useful tolerance is
a property of the source unit scale and requested accuracy, not the crate.
Implementations§
Source§impl Tolerance
impl Tolerance
Sourcepub const ZERO: Tolerance
pub const ZERO: Tolerance
Exact-coordinate policy. Use only when the caller intentionally wants no scale-derived tolerance, such as compatibility validation of an existing source model.
Sourcepub const METRE: Tolerance
pub const METRE: Tolerance
One micrometre linear and one nanoradian angular tolerance when geometry has already been normalized to metres.
Sourcepub const MILLIMETRE: Tolerance
pub const MILLIMETRE: Tolerance
One micrometre linear and one nanoradian angular tolerance while values are still expressed in millimetres.
Sourcepub fn new(linear: f64, angular: f64) -> Result<Tolerance, ToleranceError>
pub fn new(linear: f64, angular: f64) -> Result<Tolerance, ToleranceError>
Construct a validated policy.