oxiphysics_geometry/implicit_geometry/sdfsmoothintersection_traits.rs
1//! # SdfSmoothIntersection - Trait Implementations
2//!
3//! This module contains trait implementations for `SdfSmoothIntersection`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Sdf`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::functions::*;
12use super::types::SdfSmoothIntersection;
13
14impl<A: Sdf, B: Sdf> Sdf for SdfSmoothIntersection<A, B> {
15 fn dist(&self, p: [f64; 3]) -> f64 {
16 sdf_smooth_intersection(self.a.dist(p), self.b.dist(p), self.k)
17 }
18}