Skip to main content

oxiphysics_geometry/implicit_geometry/
sdfintersection_traits.rs

1//! # SdfIntersection - Trait Implementations
2//!
3//! This module contains trait implementations for `SdfIntersection`.
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::SdfIntersection;
13
14impl<A: Sdf, B: Sdf> Sdf for SdfIntersection<A, B> {
15    fn dist(&self, p: [f64; 3]) -> f64 {
16        self.a.dist(p).max(self.b.dist(p))
17    }
18}