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