oxiphysics_geometry/implicit_geometry/sdfshell_traits.rs
1//! # SdfShell - Trait Implementations
2//!
3//! This module contains trait implementations for `SdfShell`.
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::SdfShell;
13
14impl<S: Sdf> Sdf for SdfShell<S> {
15 fn dist(&self, p: [f64; 3]) -> f64 {
16 self.inner.dist(p).abs() - self.thickness * 0.5
17 }
18}